Do not use name tag
for intance filter
This commit is contained in:
parent
5975296770
commit
21ba6e9ce8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue