Skip to content

Commit 4e2c1a1

Browse files
committed
Remove stopping machine from DestroyOneMachine to avoid an error in DestroyVirtualMachine because CAPC destroys the stopped machine
1 parent c0d5e8d commit 4e2c1a1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/e2e/common.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,6 @@ func DestroyOneMachine(clusterName string, machineType string) {
220220
}
221221

222222
Byf("Destroying machine %s", vmToDestroy.Name)
223-
stopParams := client.VirtualMachine.NewStopVirtualMachineParams(vmToDestroy.Id)
224-
stopParams.SetForced(true)
225-
_, err = client.VirtualMachine.StopVirtualMachine(stopParams)
226-
if err != nil {
227-
Fail("Failed to stop machine: " + err.Error())
228-
}
229223
destroyParams := client.VirtualMachine.NewDestroyVirtualMachineParams(vmToDestroy.Id)
230224
destroyParams.SetExpunge(true)
231225
_, err = client.VirtualMachine.DestroyVirtualMachine(destroyParams)

0 commit comments

Comments
 (0)