mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
win_updates shouldn't install hidden updates
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user