Commit 9c6d0dfc authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: fix type casting

/cc @pearkes - This fixes that crash
parent f41429b6
......@@ -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
}
......
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