mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
win_updates: fix regression when using string cat names (#36015)
This commit is contained in:
parent
7dfa11cd8a
commit
8fb66c18de
2 changed files with 5 additions and 2 deletions
|
@ -6,6 +6,7 @@ import json
|
|||
from ansible.errors import AnsibleError
|
||||
from ansible.module_utils._text import to_text
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.parsing.yaml.objects import AnsibleUnicode
|
||||
from ansible.plugins.action import ActionBase
|
||||
|
||||
try:
|
||||
|
@ -140,6 +141,9 @@ class ActionModule(ActionBase):
|
|||
'SecurityUpdates',
|
||||
'UpdateRollups',
|
||||
])
|
||||
if isinstance(category_names, AnsibleUnicode):
|
||||
category_names = [cat.strip() for cat in category_names.split(",")]
|
||||
|
||||
state = self._task.args.get('state', 'installed')
|
||||
reboot = self._task.args.get('reboot', False)
|
||||
reboot_timeout = self._task.args.get('reboot_timeout',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue