Skip to content

Commit

Permalink
Don't enforce database name
Browse files Browse the repository at this point in the history
  • Loading branch information
randomnote1 committed Aug 29, 2022
1 parent f2d7347 commit 9399f70
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 @@ -1352,7 +1352,7 @@ function Test-TargetResource
$result = $false
}

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

0 comments on commit 9399f70

Please sign in to comment.