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 shouldn't install hidden updates

This commit is contained in:
nitzmahone 2016-04-07 17:19:36 -07:00 committed by Matt Clay
parent e7e1a8bfea
commit e20eac089f

View file

@ -121,6 +121,11 @@ $job_body = {
$update.AcceptEula()
}
if($update.IsHidden) {
Write-DebugLog "Skipping hidden update $($update.Title)"
continue
}
Write-DebugLog "Adding update $($update.Identity.UpdateID) - $($update.Title)"
$res = $updates_to_install.Add($update)