Skip to content

Commit

Permalink
Merge pull request #254 from anmenaga/test
Browse files Browse the repository at this point in the history
Re-enabled PowerShellGroup resource for PS 7.4.0-rc.1 or newer
  • Loading branch information
SteveL-MSFT authored Nov 7, 2023
2 parents 0ab0fdd + 7094e56 commit f6c6fcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions powershellgroup/powershellgroup.resource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ function RefreshCache
}
}

if (($PSVersionTable.PSVersion.Major -ge 7) -and ($PSVersionTable.PSVersion.Minor -ge 4))
if (($PSVersionTable.PSVersion.Major -ge 7) -and ($PSVersionTable.PSVersion.Minor -ge 4) `
-and ($PSVersionTable.PSVersion.PreReleaseLabel.StartsWith("preview")))
{
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"
throw "PowerShell 7.4-previews are not supported by PowerShellGroup resource; please use PS 7.4.0-rc.1 or newer."
}

$DscModule = Get-Module -Name PSDesiredStateConfiguration -ListAvailable |
Expand Down

0 comments on commit f6c6fcd

Please sign in to comment.