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