Skip to content

Commit ceb9a9b

Browse files
randomnote1johlju
authored andcommitted
Revert "Don't enforce database name"
This reverts commit 9399f70.
1 parent 684f96a commit ceb9a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ function Test-TargetResource
14231423
$result = $false
14241424
}
14251425

1426-
if ( $PSBoundParameters.ContainsKey('DatabaseName') -and $DatabaseName -ne $currentConfig.DatabaseName )
1426+
if ( $DatabaseName -ne $currentConfig.DatabaseName )
14271427
{
14281428
Write-Verbose -Message ( $script:localizedData.TestDatabaseName -f $currentConfig.DatabaseName, $DatabaseName ) -Verbose
14291429
$result = $false

0 commit comments

Comments
 (0)