17 lines
364 B
Go
17 lines
364 B
Go
package common
|
|
|
|
import (
|
|
"github.com/hashicorp/packer-plugin-sdk/multistep"
|
|
)
|
|
|
|
func CommHost(host string) func(multistep.StateBag) (string, error) {
|
|
return func(state multistep.StateBag) (string, error) {
|
|
return host, nil
|
|
}
|
|
}
|
|
|
|
func CommPort(state multistep.StateBag) (int, error) {
|
|
commHostPort := state.Get("commHostPort").(int)
|
|
return commHostPort, nil
|
|
}
|