Skip to content

Commit

Permalink
Revert "Don't enforce database name"
Browse files Browse the repository at this point in the history
This reverts commit 9399f70.
  • Loading branch information
randomnote1 authored and johlju committed Mar 26, 2023
1 parent 684f96a commit ceb9a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ function Test-TargetResource
$result = $false
}

if ( $PSBoundParameters.ContainsKey('DatabaseName') -and $DatabaseName -ne $currentConfig.DatabaseName )
if ( $DatabaseName -ne $currentConfig.DatabaseName )
{
Write-Verbose -Message ( $script:localizedData.TestDatabaseName -f $currentConfig.DatabaseName, $DatabaseName ) -Verbose
$result = $false
Expand Down

0 comments on commit ceb9a9b

Please sign in to comment.