mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 15:01:40 -04:00
15 lines
295 B
Go
15 lines
295 B
Go
package qemu
|
|
|
|
import (
|
|
"github.com/hashicorp/packer/helper/multistep"
|
|
)
|
|
|
|
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)
|
|
return int(sshHostPort), nil
|
|
}
|