Skip to content

Commit f6c6fcd

Browse files
authored
Merge pull request #254 from anmenaga/test
Re-enabled PowerShellGroup resource for PS 7.4.0-rc.1 or newer
2 parents 0ab0fdd + 7094e56 commit f6c6fcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

powershellgroup/powershellgroup.resource.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ function RefreshCache
3333
}
3434
}
3535

36-
if (($PSVersionTable.PSVersion.Major -ge 7) -and ($PSVersionTable.PSVersion.Minor -ge 4))
36+
if (($PSVersionTable.PSVersion.Major -ge 7) -and ($PSVersionTable.PSVersion.Minor -ge 4) `
37+
-and ($PSVersionTable.PSVersion.PreReleaseLabel.StartsWith("preview")))
3738
{
38-
throw "PowerShell 7.4 is not currently supported by PowerShellGroup resource; please use PS 7.3. Tracking issue: https://github.com/PowerShell/DSC/issues/128"
39+
throw "PowerShell 7.4-previews are not supported by PowerShellGroup resource; please use PS 7.4.0-rc.1 or newer."
3940
}
4041

4142
$DscModule = Get-Module -Name PSDesiredStateConfiguration -ListAvailable |

0 commit comments

Comments
 (0)