From 9399f70c0ccb8bbbd871d758c17c57477e91590d Mon Sep 17 00:00:00 2001 From: Dan Reist Date: Mon, 29 Aug 2022 15:46:25 -0400 Subject: [PATCH] Don't enforce database name --- source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1 b/source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1 index ac11b66d1..41537b408 100644 --- a/source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1 +++ b/source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1 @@ -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