Add a new inventory group so you can see instances in a particular VPC

pull/6676/head
Dan Jenkins 11 years ago
parent ade083a2e3
commit d7b36dd9e7

@ -433,6 +433,10 @@ class Ec2Inventory(object):
if self.nested_groups:
self.push_group(self.inventory, 'keys', key_name)
# Inventory: Group by VPC
if instance.vpc_id:
self.push(self.inventory, self.to_safe('vpc_id_' + instance.vpc_id), dest)
# Inventory: Group by security group
try:
for group in instance.groups:

Loading…
Cancel
Save