Skip to content

Commit

Permalink
Merge pull request #339 from NikCharlebois/FixIssue312
Browse files Browse the repository at this point in the history
Fix Issue 312
  • Loading branch information
NikCharlebois committed Jan 22, 2020
2 parents 1d2febe + a58bc92 commit e6e9da5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## UNRELEASED

* EXOAcceptedDomain
* Fixed an issue where the domains were not properly extracted
if multiple domain matches a similar pattern;
* EXOHostedOutboundSpamFilterPolicy
* Fixed an error where the resource was not being extracted via
the Graphical User Interface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Get-TargetResource

$AllAcceptedDomains = Get-AcceptedDomain

$AcceptedDomain = ($AllAcceptedDomains | Where-Object -FilterScript { $_.Identity -IMatch $Identity })
$AcceptedDomain = $AllAcceptedDomains | Where-Object -FilterScript { $_.Identity -eq $Identity }

if ($null -eq $AcceptedDomain)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ function Export-TargetResource
[System.Management.Automation.PSCredential]
$GlobalAdminAccount
)
$InformationPreference = 'Continue'
#region Telemetry
$data = [System.Collections.Generic.Dictionary[[String], [String]]]::new()
$data.Add("Resource", $MyInvocation.MyCommand.ModuleName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
Set-TargetResource @testParams
}

It "Should return Present from the Get method" {
(Get-TargetResource @testParams).Ensure | Should Be "Present"
It "Should return Absent from the Get method" {
(Get-TargetResource @testParams).Ensure | Should Be "Absent"
}
}

Expand Down

0 comments on commit e6e9da5

Please sign in to comment.