Skip to content

Commit ad3e2b1

Browse files
committed
Merge branch 'master' of github.com:wagoodman/bridgy
2 parents 80d7880 + 5174834 commit ad3e2b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bridgy/inventory/aws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def instances(self):
5555

5656
# try to find the best dns/ip address to reach this box
5757
address = None
58-
if instance['PublicDnsName']:
58+
if instance.get('PublicDnsName'):
5959
address = instance['PublicDnsName']
60-
elif instance['PrivateIpAddress']:
60+
elif instance.get('PrivateIpAddress'):
6161
address = instance['PrivateIpAddress']
6262

6363
# try to find the best field to match a name against

0 commit comments

Comments
 (0)