mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-18 22:11:39 -04:00
20 lines
469 B
Go
20 lines
469 B
Go
package vagrant
|
|
|
|
import (
|
|
"github.com/hashicorp/packer-plugin-sdk/multistep"
|
|
)
|
|
|
|
func CommHost() func(multistep.StateBag) (string, error) {
|
|
return func(state multistep.StateBag) (string, error) {
|
|
config := state.Get("config").(*Config)
|
|
return config.Comm.SSHHost, nil
|
|
}
|
|
}
|
|
|
|
func SSHPort() func(multistep.StateBag) (int, error) {
|
|
return func(state multistep.StateBag) (int, error) {
|
|
config := state.Get("config").(*Config)
|
|
return config.Comm.SSHPort, nil
|
|
}
|
|
}
|