Update logs to talk about IP instead of public IP
When logging we don't know whether we use a private or public ip, just the ip itself.
This commit is contained in:
parent
0534e3420c
commit
61432cd257
|
@ -19,7 +19,7 @@ func (s *stepInstanceInfo) Run(_ context.Context, state multistep.StateBag) mult
|
|||
|
||||
ip, err := driver.GetInstanceIP(id)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Error getting instance's public IP: %s", err)
|
||||
err = fmt.Errorf("Error getting instance's IP: %s", err)
|
||||
ui.Error(err.Error())
|
||||
state.Put("error", err)
|
||||
return multistep.ActionHalt
|
||||
|
@ -27,7 +27,7 @@ func (s *stepInstanceInfo) Run(_ context.Context, state multistep.StateBag) mult
|
|||
|
||||
state.Put("instance_ip", ip)
|
||||
|
||||
ui.Say(fmt.Sprintf("Instance has public IP: %s.", ip))
|
||||
ui.Say(fmt.Sprintf("Instance has IP: %s.", ip))
|
||||
|
||||
return multistep.ActionContinue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue