Skip to content

Commit 4b969fa

Browse files
committed
capture and return "run-script" command output
1 parent f8bde4c commit 4b969fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/module_utils/checkpoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ 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'])
215216

216217
result[command] = response
217218
else:

0 commit comments

Comments
 (0)