Skip to content

Commit 0f3f7c0

Browse files
committed
Resolve remark
1 parent 0df4278 commit 0f3f7c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wmi-adapter/Tests/wmi.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Describe 'WMI adapter resource tests' {
7474

7575
$out = dsc resource set -r root.cimv2/Win32_Environment -i $i 2>$TestDrive/error2.log
7676
$out | Should -BeNullOrEmpty
77-
(Get-Content $TestDrive/error2.log -Raw) | Should -BeLike "*All key properties in the CIM class 'Win32_Environment' are read-only, which is not supported.*"
77+
(Get-Content $TestDrive/error2.log -Raw) | Should -BeLike "*All properties specified in the CIM class 'Win32_Environment' are read-only, which is not supported.*"
7878
}
7979

8080
It 'Set works on a WMI resource' -Skip:(!$IsWindows) {

wmi-adapter/wmiAdapter.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function GetValidCimProperties {
7575
$readOnlyKeyProps = $keyProperties | Where-Object { $_.Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::ReadOnly) }
7676

7777
if ($readOnlyKeyProps.Count -eq $keyProperties.Count) {
78-
"All key properties in the CIM class '$ClassName' are read-only, which is not supported." | Write-DscTrace -Operation Error
78+
"All properties specified in the CIM class '$ClassName' are read-only, which is not supported." | Write-DscTrace -Operation Error
7979
exit 1
8080
}
8181
}

0 commit comments

Comments
 (0)