We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c024b04 commit a9db6ecCopy full SHA for a9db6ec
update/windows-update.ps1
@@ -200,7 +200,7 @@ for ($i = 0; $i -lt $searchResult.Updates.Count; ++$i) {
200
$properties = $update `
201
| Get-Member $expectedProperties `
202
| Select-Object -ExpandProperty Name
203
- if (Compare-Object $expectedProperties $properties) {
+ if (!$properties -or (Compare-Object $expectedProperties $properties)) {
204
throw "the windows update api returned a invalid update object. see https://github.com/rgl/packer-plugin-windows-update/issues/144."
205
}
206
0 commit comments