github.com/raghuse92/packer@v1.3.2/builder/qemu/ssh.go (about) 1 package qemu 2 3 import ( 4 "github.com/hashicorp/packer/helper/multistep" 5 ) 6 7 func commHost(state multistep.StateBag) (string, error) { 8 return "127.0.0.1", nil 9 } 10 11 func commPort(state multistep.StateBag) (int, error) { 12 sshHostPort := state.Get("sshHostPort").(uint) 13 return int(sshHostPort), nil 14 }