From 21ba6e9ce83410d35adbc4c3b5b12a07a6e28271 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 2 Mar 2016 20:06:14 +0100 Subject: [PATCH] Do not use name `tag` for intance filter --- contrib/inventory/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py index f9a943efbe0..86327360b90 100755 --- a/contrib/inventory/ec2.py +++ b/contrib/inventory/ec2.py @@ -389,7 +389,7 @@ class Ec2Inventory(object): self.ec2_instance_filters = defaultdict(list) if config.has_option('ec2', 'instance_filters'): - filters = [tag for tag in config.get('ec2', 'instance_filters').split(',') if tag] + filters = [f for f in config.get('ec2', 'instance_filters').split(',') if f] for instance_filter in filters: instance_filter = instance_filter.strip()