builder/digitalocean: break loop if we reach off state

Otherwise we get stuck in a long loop. Whoops.
pull/389/head
Mitchell Hashimoto 13 years ago
parent 5477d7166b
commit 2da53f54f4

@ -32,6 +32,10 @@ func (s *stepPowerOff) Run(state multistep.StateBag) multistep.StepAction {
}
err = waitForDropletState("off", dropletId, client, 20*time.Second)
if err == nil {
// We reached the state!
break
}
}
if err != nil {

Loading…
Cancel
Save