mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 00:32:09 -04:00
fix some debugging for PublicIpAddress
This commit is contained in:
parent
4809186c12
commit
e711255d95
1 changed files with 4 additions and 1 deletions
|
|
@ -110,13 +110,16 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
|
|||
}
|
||||
|
||||
s.instance = latestInstance.(*ec2.Instance)
|
||||
log.Printf("Public IP: %s", s.instance.PublicIpAddress)
|
||||
|
||||
if s.Debug {
|
||||
if s.instance.DNSName != "" {
|
||||
ui.Message(fmt.Sprintf("Public DNS: %s", s.instance.DNSName))
|
||||
}
|
||||
|
||||
if s.instance.PublicIpAddress != "" {
|
||||
ui.Message(fmt.Sprintf("Public IP: %s", s.instance.PublicIpAddress))
|
||||
}
|
||||
|
||||
if s.instance.PrivateIpAddress != "" {
|
||||
ui.Message(fmt.Sprintf("Private IP: %s", s.instance.PrivateIpAddress))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue