From 9e575034a59113d15a3a9378e6b0a7529292afa9 Mon Sep 17 00:00:00 2001 From: Fabien Tschanz Date: Sat, 6 Jul 2024 01:13:20 +0200 Subject: [PATCH] Fix settings instance array return value --- CHANGELOG.md | 7 +++++++ Modules/Microsoft365DSC/Modules/M365DSCDRGUtil.psm1 | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ac8b32ccb..b97cb78447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change log for Microsoft365DSC +# UNRELEASED + +* M365DSCDRGUtil + * Fixes an issue where the return value was changed to a single object + instead of an array. + FIXES [#4844](https://github.com/microsoft/Microsoft365DSC/issues/4844) + # 1.24.703.1 * EXOCASMailboxPlan diff --git a/Modules/Microsoft365DSC/Modules/M365DSCDRGUtil.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCDRGUtil.psm1 index f8bb79ddbf..61ef8c7b07 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCDRGUtil.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCDRGUtil.psm1 @@ -1476,7 +1476,7 @@ function Get-IntuneSettingCatalogPolicySetting } } - return $settingInstances + return ,$settingInstances } function Get-IntuneSettingCatalogPolicySettingInstanceValue @@ -2051,4 +2051,4 @@ function Find-GraphDataUsingComplexFunctions { } return $Policies -} \ No newline at end of file +}