2013-12-22 12:08:09 -05:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2020-11-17 19:31:03 -05:00
|
|
|
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
|
2013-12-22 12:08:09 -05:00
|
|
|
)
|
|
|
|
|
2016-08-24 12:30:26 -04:00
|
|
|
func CommHost(host string) func(multistep.StateBag) (string, error) {
|
|
|
|
return func(state multistep.StateBag) (string, error) {
|
|
|
|
return host, nil
|
|
|
|
}
|
2015-06-13 19:23:33 -04:00
|
|
|
}
|
|
|
|
|
2020-01-09 11:37:30 -05:00
|
|
|
func CommPort(state multistep.StateBag) (int, error) {
|
|
|
|
commHostPort := state.Get("commHostPort").(int)
|
|
|
|
return commHostPort, nil
|
2013-12-22 12:08:09 -05:00
|
|
|
}
|