Commit c2ac8fda by Michael DeHaan

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

parent 1e05688b
...@@ -49,7 +49,10 @@ class InventoryScript(object): ...@@ -49,7 +49,10 @@ class InventoryScript(object):
def _parse(self, err): def _parse(self, err):
all_hosts = {} 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') all = Group('all')
groups = dict(all=all) groups = dict(all=all)
group = None group = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment