Skip to content

Commit a7695d5

Browse files
authored
Merge pull request #39 from alex-eoi/master
Capture and return "run-script" command output
2 parents f8bde4c + 0565117 commit a7695d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/module_utils/checkpoint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ def api_command(module, command):
211211
elif 'tasks' in response:
212212
for task in response['tasks']:
213213
if 'task-id' in task:
214-
wait_for_task(module, version, connection, task['task-id'])
214+
task_id = task['task-id']
215+
response[task_id] = wait_for_task(module, version, connection, task['task-id'])
216+
del response['tasks']
215217

216218
result[command] = response
217219
else:

0 commit comments

Comments
 (0)