diff --git a/builder/virtualbox/common/ssh.go b/builder/virtualbox/common/ssh.go index 2584528dd..b04a14ac8 100644 --- a/builder/virtualbox/common/ssh.go +++ b/builder/virtualbox/common/ssh.go @@ -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 }