Commit 7f0916b6 authored by Patrick Lucas's avatar Patrick Lucas

An SSH timeout should be treated as an error

parent eb257e84
......@@ -72,7 +72,9 @@ WaitLoop:
state.Put("communicator", comm)
break WaitLoop
case <-timeout:
ui.Error("Timeout waiting for SSH.")
err := fmt.Errorf("Timeout waiting for SSH.")
state.Put("error", err)
ui.Error(err.Error())
close(cancel)
return multistep.ActionHalt
case <-time.After(1 * time.Second):
......
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