mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
When parsing json from untrusted sources, remove templating tags
This commit is contained in:
parent
eeb597360e
commit
8ed6350e65
5 changed files with 41 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue