Commit d7b36dd9 by Dan Jenkins

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

parent ade083a2
......@@ -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:
......
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