Skip to content

Commit c28b100

Browse files
committed
provider/vsphere: Fix the vsphere_virtual_machine tests
The PR that was merged to add `keep_on_destroy` was showing a green build so was merged but that build happened before another merge adding another parameter to the tests FYI @dkalleg - fixes hashicorp#7169
1 parent fc838be commit c28b100

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/providers/vsphere/resource_vsphere_virtual_machine_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ func TestAccVSphereVirtualMachine_keepOnRemove(t *testing.T) {
11831183
}
11841184

11851185
vmName := "vsphere_virtual_machine.keep_disk"
1186-
test_exists, test_name, test_cpu, test_mem, test_num_disk, test_num_of_nic, test_nic_label :=
1186+
test_exists, test_name, test_cpu, test_uuid, test_mem, test_num_disk, test_num_of_nic, test_nic_label :=
11871187
TestFuncData{vm: vm, label: basic_vars.label, vmName: vmName, numDisks: "2"}.testCheckFuncBasic()
11881188

11891189
log.Printf("[DEBUG] template= %s", testAccCheckVSphereVirtualMachineConfig_keepOnRemove)
@@ -1197,7 +1197,7 @@ func TestAccVSphereVirtualMachine_keepOnRemove(t *testing.T) {
11971197
resource.TestStep{
11981198
Config: config,
11991199
Check: resource.ComposeTestCheckFunc(
1200-
test_exists, test_name, test_cpu, test_mem, test_num_disk, test_num_of_nic, test_nic_label,
1200+
test_exists, test_name, test_cpu, test_uuid, test_mem, test_num_disk, test_num_of_nic, test_nic_label,
12011201
),
12021202
},
12031203
resource.TestStep{

0 commit comments

Comments
 (0)