Skip to content

Commit

Permalink
Merge pull request #39 from alex-eoi/master
Browse files Browse the repository at this point in the history
Capture and return "run-script" command output
  • Loading branch information
chkp-orso authored Apr 19, 2021
2 parents f8bde4c + 0565117 commit a7695d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/module_utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def api_command(module, command):
elif 'tasks' in response:
for task in response['tasks']:
if 'task-id' in task:
wait_for_task(module, version, connection, task['task-id'])
task_id = task['task-id']
response[task_id] = wait_for_task(module, version, connection, task['task-id'])
del response['tasks']

result[command] = response
else:
Expand Down

0 comments on commit a7695d5

Please sign in to comment.