2013-09-02 23:23:52 -04:00
|
|
|
package qemu
|
|
|
|
|
|
|
|
import (
|
2018-01-19 19:18:44 -05:00
|
|
|
"github.com/hashicorp/packer/helper/multistep"
|
2013-09-02 23:23:52 -04:00
|
|
|
)
|
|
|
|
|
2015-06-13 19:23:33 -04:00
|
|
|
func commHost(state multistep.StateBag) (string, error) {
|
|
|
|
return "127.0.0.1", nil
|
|
|
|
}
|
|
|
|
|
2019-03-18 12:19:03 -04:00
|
|
|
func commPort(state multistep.StateBag) (uint, error) {
|
2013-09-02 23:23:52 -04:00
|
|
|
sshHostPort := state.Get("sshHostPort").(uint)
|
2019-03-18 12:19:03 -04:00
|
|
|
return sshHostPort, nil
|
2013-09-02 23:23:52 -04:00
|
|
|
}
|