Skip to content

Commit 4631fc7

Browse files
committed
fix condition
1 parent ce01a1b commit 4631fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell-adapter/psDscAdapter/psDscAdapter.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function Invoke-DscCacheRefresh {
7070
}
7171

7272
# we can't run this check in PSDesiredStateConfiguration 1.1 because the property doesn't exist
73-
if ( $PSVersionTable.PSVersion.Major -le 5 ) {
73+
if ( $PSVersionTable.PSVersion.Major -gt 5 ) {
7474
# only support known dscResourceType
7575
if ([dscResourceType].GetEnumNames() -notcontains $dscResource.ImplementationDetail) {
7676
$trace = @{'Debug' = 'WARNING: implementation detail not found: ' + $dscResource.ImplementationDetail } | ConvertTo-Json -Compress

0 commit comments

Comments
 (0)