mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07:00
win_updates fix when win_updates is run with async (#41756)
This commit is contained in:
parent
8bd245a6a2
commit
11bd3fd318
3 changed files with 40 additions and 1 deletions
|
@ -213,7 +213,7 @@ class ActionModule(ActionBase):
|
|||
# so we just return the result as is
|
||||
# https://github.com/ansible/ansible/issues/38232
|
||||
failed = result.get('failed', False)
|
||||
if "updates" not in result.keys() or failed:
|
||||
if ("updates" not in result.keys() and self._task.async_val == 0) or failed:
|
||||
result['failed'] = True
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue