Commit ee2e75bd authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #491 from patricklucas/ssh_timeout_should_be_error

common: An SSH timeout should be treated as an error
parents eb257e84 7f0916b6
......@@ -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