builder/virtualbox: fix type casting

/cc @pearkes - This fixes that crash
This commit is contained in:
Mitchell Hashimoto 2015-06-21 19:56:55 -07:00
parent f41429b6b4
commit 9c6d0dfc8b
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ func CommHost(state multistep.StateBag) (string, error) {
}
func SSHPort(state multistep.StateBag) (int, error) {
sshHostPort := state.Get("sshHostPort").(uint)
sshHostPort := state.Get("sshHostPort").(int)
return int(sshHostPort), nil
}