When parsing json from untrusted sources, remove templating tags

This commit is contained in:
James Cammarata 2014-06-30 15:59:32 -05:00
parent eeb597360e
commit 8ed6350e65
5 changed files with 41 additions and 19 deletions

View file

@ -49,7 +49,7 @@ class InventoryScript(object):
def _parse(self, err):
all_hosts = {}
self.raw = utils.parse_json(self.data)
self.raw = utils.parse_json(self.data, from_remote=True)
all = Group('all')
groups = dict(all=all)
group = None