We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a7548b commit 46f73d2Copy full SHA for 46f73d2
src/ansible_api/controller.py
@@ -145,7 +145,8 @@ async def post(self, request):
145
if os.path.isfile(yml_file):
146
task_list = []
147
with open(yml_file, 'r') as contents:
148
- yaml_cnt = yaml.load(contents)
+ # yaml_cnt = yaml.load(contents)
149
+ yaml_cnt = yaml.full_load(contents)
150
if len(yaml_cnt) > 0 and len(yaml_cnt[0].get('tasks', [])) > 0:
151
task_list = [x.get('name', 'unnamed') for x in yaml_cnt[0]['tasks']]
152
Tool.LOGGER.info("playbook: {0}, host: {1}".format(yml_file, hosts))
0 commit comments