Files
Packer-Cn/builder/qemu/ssh.go
T

15 lines
295 B
Go
Raw Normal View History

package qemu
import (
2018-01-19 16:18:44 -08:00
"github.com/hashicorp/packer/helper/multistep"
)
2015-06-13 19:23:33 -04:00
func commHost(state multistep.StateBag) (string, error) {
return "127.0.0.1", nil
}
func commPort(state multistep.StateBag) (int, error) {
sshHostPort := state.Get("sshHostPort").(uint)
2015-06-13 19:23:33 -04:00
return int(sshHostPort), nil
}