From 9c6d0dfc8b29e5642e1727731eb41a112660e0fc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 21 Jun 2015 19:56:55 -0700 Subject: [PATCH] builder/virtualbox: fix type casting /cc @pearkes - This fixes that crash --- builder/virtualbox/common/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }