Skip to content

Commit

Permalink
Fixed assertion failed with newer version microsoft#159
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite committed Apr 25, 2022
1 parent 303ee24 commit 2e91aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/CHANGELOG-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ What's changed since v2.0.0:
- Engineering:
- Bump PSRule dependency to v2.0.1. [#158](https://github.com/microsoft/ps-rule/pull/158)
- See the [change log](https://microsoft.github.io/PSRule/latest/CHANGELOG-v2/#v201)
- Bug fixes:
- Fixed assertion failed with newer version. [#159](https://github.com/microsoft/ps-rule/issues/159)

## v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ foreach ($m in $moduleNames) {
}

try {
$checkParams = @{ RequiredVersion = $checkParams.RequiredVersion.Split('-')[0] }
$checkParams = @{ MinimumVersion = $checkParams.RequiredVersion.Split('-')[0] }
$Null = Import-Module PSRule @checkParams -ErrorAction Stop;
$version = (Get-Module PSRule).Version;
}
Expand Down

0 comments on commit 2e91aca

Please sign in to comment.