Merge pull request #2911 from jtslear/endless-loop
vmware-iso-builder: Corrects logic checking destroy
This commit is contained in:
commit
e6f1ea9ab2
|
@ -57,8 +57,8 @@ func (s *StepRegister) Cleanup(state multistep.StateBag) {
|
|||
}
|
||||
// Wait for the machine to actually destroy
|
||||
for {
|
||||
exists, _ := remoteDriver.IsDestroyed()
|
||||
if !exists {
|
||||
destroyed, _ := remoteDriver.IsDestroyed()
|
||||
if destroyed {
|
||||
break
|
||||
}
|
||||
time.Sleep(150 * time.Millisecond)
|
||||
|
|
Loading…
Reference in New Issue