Skip to content

Commit

Permalink
xExchAcceptedDomain: Fixing the Get-TargetResource function (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
SSvilen authored Sep 28, 2021
1 parent 2979db3 commit c1c255c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md)
Sampler 0.110.1 was released and is a breaking change,
so we need to pin 0.109.1.
- Add the function Remove-RemoteExchangeSession

- xExchAcceptedDomain
- Fixing the Get-TargetResource function.

## [1.32.0] - 2020-05-13

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ function Get-TargetResource
{
if ([String] $acceptedDomain.$property -and $acceptedDomainProperties -contains $property)
{
$returnValue[$property] = $acceptedDomain.$property
if ($property -eq 'Default')
{
$returnValue['MakeDefault'] = $acceptedDomain.$property
} else {
$returnValue[$property] = $acceptedDomain.$property
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/MSFT_xExchAcceptedDomain.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ try
AddressBookEnabled = [System.Boolean] $true
DomainName = [System.String] 'fakedomain.com'
DomainType = [System.String] 'Authoritative'
MakeDefault = [System.Boolean] $false
Default = [System.Boolean] $false
MatchSubDomains = [System.Boolean] $false
Name = [System.String] 'fakedomain.com'
}
Expand Down

0 comments on commit c1c255c

Please sign in to comment.