Skip to content

Commit bebadad

Browse files
Merge pull request #64 from chkp-shirango/master
Fix wait_for_task
2 parents dc2955d + 086c535 commit bebadad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/module_utils/checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def handle_call(connection, version, call, payload, module, to_publish, to_disca
240240
else:
241241
module.fail_json(msg=parse_fail_message(code, response))
242242
else:
243-
if module.params['wait_for_task']:
243+
if 'wait_for_task' in module.params and module.params['wait_for_task']:
244244
if 'task-id' in response:
245245
response = wait_for_task(module, version, connection, response['task-id'])
246246
elif 'tasks' in response:

0 commit comments

Comments
 (0)