Commit 39f7a5a6 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/digitalocean: break loop if we reach off state

Otherwise we get stuck in a long loop. Whoops.
parent 82b46816
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment