builder/virtualbox: add the ssh host port to state

This commit is contained in:
Mitchell Hashimoto 2013-06-11 20:30:07 -07:00
parent ad1c59f34e
commit 70df8c8c8b
1 changed files with 3 additions and 0 deletions

View File

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