Merge pull request #2911 from jtslear/endless-loop

vmware-iso-builder: Corrects logic checking destroy
This commit is contained in:
Chris Bednarski 2016-01-14 15:00:34 -08:00
commit e6f1ea9ab2
1 changed files with 2 additions and 2 deletions

View File

@ -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)