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:
Robert Neumayer 2018-03-22 09:08:25 +01:00
parent 0534e3420c
commit 61432cd257
1 changed files with 2 additions and 2 deletions

View File

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