We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80d7880 + 5174834 commit ad3e2b1Copy full SHA for ad3e2b1
bridgy/inventory/aws.py
@@ -55,9 +55,9 @@ def instances(self):
55
56
# try to find the best dns/ip address to reach this box
57
address = None
58
- if instance['PublicDnsName']:
+ if instance.get('PublicDnsName'):
59
address = instance['PublicDnsName']
60
- elif instance['PrivateIpAddress']:
+ elif instance.get('PrivateIpAddress'):
61
address = instance['PrivateIpAddress']
62
63
# try to find the best field to match a name against
0 commit comments