1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

win_updates - fix category return value to be a list (#51001)

* win_updates - fix category return value to be a list

* remove unstable test alias
This commit is contained in:
Jordan Borean 2019-01-18 05:35:10 +10:00 committed by GitHub
parent 88bb555ab8
commit b7620c161a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 10 deletions

View file

@ -112,7 +112,7 @@ $update_script_block = {
kb = $update.KBArticleIDs
id = $update.Identity.UpdateId
installed = $false
categories = ($update.Categories | ForEach-Object { $_.Name })
categories = @($update.Categories | ForEach-Object { $_.Name })
}
# validate update again blacklist/whitelist/post_category_names/hidden

View file

@ -134,14 +134,6 @@ class ActionModule(ActionBase):
result = super(ActionModule, self).run(tmp, task_vars)
del tmp # tmp no longer has any effect
category_names = self._task.args.get('category_names', [
'CriticalUpdates',
'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',

View file

@ -1,2 +1 @@
shippable/windows/group2
unstable