Skip to content

Commit

Permalink
Merge pull request #4953 from ricmestre/fix4952
Browse files Browse the repository at this point in the history
Compare-PSCustomObjectArrays: Allow empty arrays as input
  • Loading branch information
ykuijs authored Aug 21, 2024
2 parents 828fb15 + 1918b91 commit aceb594
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
* EXOAuthenticationPolicyAssignment
* Removes the 1000 user limit when exporting authentication policy assignments
FIXES [#4956](https://github.com/microsoft/Microsoft365DSC/issues/4956)

* EXOHostedContentFilterRule
* Don't check if associated `EXOHostedContentFilterPolicy` is present
while removing resource since it's not required
* M365DSCUtil
* Fix `Compare-PSCustomObjectArrays` by allowing empty arrays as input
FIXES [#4952](https://github.com/microsoft/Microsoft365DSC/issues/4952)

# 1.24.731.1

Expand Down
2 changes: 2 additions & 0 deletions Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,12 @@ function Compare-PSCustomObjectArrays
param
(
[Parameter(Mandatory = $true)]
[AllowEmptyCollection()]
[System.Object[]]
$DesiredValues,

[Parameter(Mandatory = $true)]
[AllowEmptyCollection()]
[System.Object[]]
$CurrentValues
)
Expand Down

0 comments on commit aceb594

Please sign in to comment.