Commit 70df8c8c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: add the ssh host port to state

parent ad1c59f3
...@@ -49,6 +49,9 @@ func (s *stepForwardSSH) Run(state map[string]interface{}) multistep.StepAction ...@@ -49,6 +49,9 @@ func (s *stepForwardSSH) Run(state map[string]interface{}) multistep.StepAction
return multistep.ActionHalt return multistep.ActionHalt
} }
// Save the port we're using so that future steps can use it
state["sshHostPort"] = sshHostPort
time.Sleep(15 * time.Second) time.Sleep(15 * time.Second)
return multistep.ActionContinue return multistep.ActionContinue
} }
......
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