Skip to content

Commit

Permalink
Fixed issue microsoft#92 | Fails to handle Farms with multiple SQL Se…
Browse files Browse the repository at this point in the history
…rver instances
  • Loading branch information
Kayode Bristol authored and Kayode Bristol committed Nov 13, 2019
1 parent 349d60f commit 1f12f89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ Please refer to the follow Wiki page if you are interested in contributing to th

### Unreleased
- Fixed issue Incorrect handling of Port in Read-SPWebapplications #90
- Fails to handle Farms with multiple SQL Server instances #92
7 changes: 3 additions & 4 deletions SharePointDSC.Reverse.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Fixed issue with Central admin Port retrieval;
* Updated dependency to ReverseDSC 1.9.4.7;
* Updated dependency to SharePointDSC 3.6.0.0;
* Fixed issue #90 incorrect handling of Port in Read-SPWebapplications
* Fixed issue #92 | Fails to handle Farms with multiple SQL Server instances
#>

Expand Down Expand Up @@ -3435,10 +3437,7 @@ function Read-SPContentDatabase()
$params.WebAppUrl = $spContentDB.WebApplication.Url
$results = Get-TargetResource @params
$results = Repair-Credentials -results $results

Add-ConfigurationDataEntry -Node "NonNodeData" -Key "DatabaseServer" -Value $results.DatabaseServer -Description "Name of the Database Server associated with the destination SharePoint Farm;"
$results.DatabaseServer = "`$ConfigurationData.NonNodeData.DatabaseServer"

$results.DatabaseServer = $spContentDB.Server
$currentBlock = Get-DSCBlock -UseGetTargetResource -Params $results -ModulePath $module
$currentBlock = Convert-DSCStringParamToVariable -DSCBlock $currentBlock -ParameterName "DatabaseServer"
$Script:dscConfigContent += $currentBlock
Expand Down

0 comments on commit 1f12f89

Please sign in to comment.