Skip to content

Commit 2c3233d

Browse files
committed
Fix SqlConfiguration
1 parent 78c661a commit 2c3233d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- Fix localization strings in `Assert` method.
2525
- `Save-SqlDscSqlServerMediaFile`
2626
- Fix localizations strings that used wrong keys.
27+
- `SqlConfiguration`
28+
- Change the alias command to real command name, to pass HQRM tests.
2729

2830
## [17.0.0] - 2024-09-30
2931

source/DSCResources/DSC_SqlConfiguration/DSC_SqlConfiguration.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Get-TargetResource
7474
if (-not $option)
7575
{
7676
$errorMessage = $script:localizedData.ConfigurationOptionNotFound -f $OptionName
77-
New-InvalidArgumentException -ArgumentName 'OptionName' -Message $errorMessage
77+
New-ArgumentException -ArgumentName 'OptionName' -Message $errorMessage
7878
}
7979

8080
Write-Verbose -Message (
@@ -157,7 +157,7 @@ function Set-TargetResource
157157
if (-not $option)
158158
{
159159
$errorMessage = $script:localizedData.ConfigurationOptionNotFound -f $OptionName
160-
New-InvalidArgumentException -ArgumentName 'OptionName' -Message $errorMessage
160+
New-ArgumentException -ArgumentName 'OptionName' -Message $errorMessage
161161
}
162162

163163
$option.ConfigValue = $OptionValue

0 commit comments

Comments
 (0)