Commit 26818e3f by Gabe Mulley Committed by Gerrit Code Review

Merge "Include hosts inside private subnets when they have dns names"

parents 6191257a 3f45de9a
...@@ -331,6 +331,7 @@ class Ec2Inventory(object): ...@@ -331,6 +331,7 @@ class Ec2Inventory(object):
for dest_variable in [self.destination_variable, self.backup_destination_variable]: for dest_variable in [self.destination_variable, self.backup_destination_variable]:
if hasattr(instance, dest_variable): if hasattr(instance, dest_variable):
dest = getattr(instance, dest_variable) dest = getattr(instance, dest_variable)
break
if not dest: if not dest:
# Skip instances we cannot address (e.g. private VPC subnet) # Skip instances we cannot address (e.g. private VPC subnet)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment