Skip to content

Commit 9baac5e

Browse files
authored
Merge pull request #576 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 5db754f + fd465fb commit 9baac5e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Invoke-ExecBackendURLs {
77
#>
88
[CmdletBinding()]
99
param($Request, $TriggerMetadata)
10-
$Subscription = ($env:WEBSITE_OWNER_NAME).split('+') | Select-Object -First 1
10+
$Subscription = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1
1111
$SWAName = $env:WEBSITE_SITE_NAME -replace 'cipp', 'CIPP-SWA-'
1212

1313
# Write to the Azure Functions log stream.

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ function Invoke-ListGroupTemplates {
1313
$Table = Get-CippTable -tablename 'templates'
1414
$Filter = "PartitionKey eq 'GroupTemplate'"
1515
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter) | ForEach-Object {
16-
$data = $_.JSON | ConvertFrom-Json
17-
16+
$data = $_.JSON | ConvertFrom-Json -ErrorAction SilentlyContinue
1817
# Normalize groupType to camelCase for consistent frontend handling
1918
# Handle both stored normalized values and legacy values
20-
$normalizedGroupType = switch -Wildcard ($data.groupType.ToLower()) {
19+
$normalizedGroupType = switch -Wildcard ($data.groupType) {
2120
# Already normalized values (most common)
2221
'dynamicdistribution' { 'dynamicDistribution'; break }
2322
'azurerole' { 'azureRole'; break }

0 commit comments

Comments
 (0)