Skip to content

Commit

Permalink
Merge pull request #4624 from FabienTschanz/fix/dscutil-empty-desired…
Browse files Browse the repository at this point in the history
…-values

Fix empty array parameter to comparison
  • Loading branch information
NikCharlebois committed May 8, 2024
2 parents 9014ce1 + aea640e commit 0ab46de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* SCAutoSensitivityLabelPolicy
* Fix incorrect mandatory Credential parameter in Set and Test methods
FIXES [#4283](https://github.com/microsoft/Microsoft365DSC/issues/4283)
* M365DSCUtil
* Fixed an issue where one could not pass empty arrays to the
`Compare-PSCustomObjectArrays` function.
* DEPENDENCIES
* Updated Microsoft.Graph to version 2.18.0.
* Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.182.
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 0ab46de

Please sign in to comment.