Correct communication port

This commit is contained in:
flx5 2021-09-30 15:14:55 +02:00
parent 76d884b65d
commit cd8e37013d

View File

@ -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
} }