You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a limited list of vars that support lookups in the aws_ec2.yml file. I'd like too add the filters var too that list.
With this feature it become possible too filter the inventroy based on env vars. In our case we can have dynamic inv for each developer.
Issue Type
Feature Idea
Component Name
The inventory.py in plugins/plugin_utils
Additional Information
def get(self, *args):
value = self.original_options.get(*args)if (not valueor not self.templaror args[0] not in self.TEMPLATABLE_OPTIONS):
return valueif isinstance(value, dict):
new = {}for i in value:
new[i] = self.templar.template(variable=value[i], disable_lookups=False)return newreturn self.templar.template(variable=value, disable_lookups=False)
Above is the fix for the 'get' function together with adding the filters var too the list
Summary
There is a limited list of vars that support lookups in the aws_ec2.yml file. I'd like too add the filters var too that list.
With this feature it become possible too filter the inventroy based on env vars. In our case we can have dynamic inv for each developer.
Issue Type
Feature Idea
Component Name
The inventory.py in plugins/plugin_utils
Additional Information
Above is the fix for the 'get' function together with adding the filters var too the list
Code of Conduct
The text was updated successfully, but these errors were encountered: