packer-cn/builder/qemu/ssh.go

15 lines
294 B
Go
Raw Normal View History

package qemu
import (
"github.com/hashicorp/packer/helper/multistep"
)
func commHost(state multistep.StateBag) (string, error) {
return "127.0.0.1", nil
}
2019-03-19 09:47:21 -04:00
func commPort(state multistep.StateBag) (int, error) {
sshHostPort := state.Get("sshHostPort").(int)
return int(sshHostPort), nil
}