Skip to content

Commit f9c66eb

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
Fix wmi-adapter to not return error if no instances are returned
1 parent 4a72440 commit f9c66eb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

wmi-adapter/wmi.resource.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,6 @@ elseif ($Operation -eq 'Get')
165165

166166
$result += @($instance_result)
167167
}
168-
else
169-
{
170-
$errmsg = "Can not find type " + $r.type + "; please ensure that Get-CimInstance returns this resource type"
171-
Write-Trace $errmsg
172-
exit 1
173-
}
174168
}
175169
}
176170
else # we are processing an individual resource call

0 commit comments

Comments
 (0)