Skip to content

Commit 14d455f

Browse files
committed
fix property names
1 parent 4d8d0f2 commit 14d455f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-ListStandardsCompare.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ Function Invoke-ListStandardsCompare {
2525
} else {
2626
$_.Value = [string]$_.Value
2727
}
28-
$object | Add-Member -MemberType NoteProperty -Name $_.Name.Replace('standards_', 'standards.') -Value $_.Value -Force
28+
29+
$Key = $_.Name.replace('standards_', 'standards.')
30+
$Key = $Key.replace('IntuneTemplate_', 'IntuneTemplate.')
31+
$Key = $Key -replace '__', '-'
32+
33+
$object | Add-Member -MemberType NoteProperty -Name $Key -Value $_.Value -Force
2934
$object.PSObject.Properties.Remove($_.Name)
3035
}
31-
3236
}
3337
}
3438

0 commit comments

Comments
 (0)