17 lines
371 B
Go
Raw Permalink Normal View History

2013-12-22 09:08:09 -08:00
package common
import (
2020-11-17 16:31:03 -08:00
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
2013-12-22 09:08:09 -08:00
)
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
2013-12-22 09:08:09 -08:00
}