Correct communication port
This commit is contained in:
parent
76d884b65d
commit
cd8e37013d
@ -91,11 +91,12 @@ func (self *StepWaitForIP) Run(ctx context.Context, state multistep.StateBag) mu
|
|||||||
return multistep.ActionContinue
|
return multistep.ActionContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
func InstanceSSHIP(state multistep.StateBag) (string, error) {
|
func InstanceCommIP(state multistep.StateBag) (string, error) {
|
||||||
ip := state.Get("instance_ssh_address").(string)
|
ip := state.Get("instance_ssh_address").(string)
|
||||||
return ip, nil
|
return ip, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func InstanceSSHPort(state multistep.StateBag) (int, error) {
|
func InstanceCommPort(state multistep.StateBag) (int, error) {
|
||||||
return 22, nil
|
config := state.Get("commonconfig").(CommonConfig)
|
||||||
|
return config.Comm.Port(), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user