Skip to content

Commit

Permalink
Fixed issue Incorrect handling of Port in Read-SPWebapplications micr…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayode Bristol authored and Kayode Bristol committed Nov 13, 2019
1 parent 23a1929 commit 349d60f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ ReverseDSC can be used for many reasons, including:

# How to Contribute?
Please refer to the follow Wiki page if you are interested in contributing to the project: https://github.com/Microsoft/SharePointDSC.Reverse/wiki/Contribute-to-an-Orchestrator-Script

## Versions

### Unreleased
- Fixed issue Incorrect handling of Port in Read-SPWebapplications #90
6 changes: 1 addition & 5 deletions SharePointDSC.Reverse.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1263,11 +1263,7 @@ function Read-SPWebApplications (){

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"
if($results.WebAppURl.Contains(":") -and $results.Port -and $results.Port -ne 80)
{
$results.Remove("Port")
}
elseif(!$results.WebAppUrl.Contains(":") -and !$results.Port)
if(!$results.WebAppUrl.Contains(":") -and !$results.Port)
{
$results.Add("Port", 80)
}
Expand Down

0 comments on commit 349d60f

Please sign in to comment.