Do not use name tag for intance filter

This commit is contained in:
Joe 2016-03-02 20:06:14 +01:00
parent 5975296770
commit 21ba6e9ce8

View file

@ -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()