1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Data from inventory scripts should be able to use nested Jinja2 expressions.

This commit is contained in:
Michael DeHaan 2014-07-03 16:11:14 -04:00
parent 1e05688b04
commit c2ac8fda1e

View file

@ -49,7 +49,10 @@ class InventoryScript(object):
def _parse(self, err):
all_hosts = {}
self.raw = utils.parse_json(self.data, from_remote=True)
# not passing from_remote because data from CMDB is trusted
self.raw = utils.parse_json(self.data)
all = Group('all')
groups = dict(all=all)
group = None