File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Modules/CIPPCore/Public/Entrypoints
HTTP Functions/Tenant/Standards Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,11 @@ function Invoke-ExecStandardConvert {
223
223
$StandardsToConvert | ForEach-Object {
224
224
$Table = Get-CippTable - tablename ' standards'
225
225
$OldStdsTableItems = Get-CIPPAzDataTableEntity @Table - Filter $Filter
226
- Remove-AzDataTableEntity @Table - Entity $OldStdsTableItems - Force
226
+ try {
227
+ Remove-AzDataTableEntity @Table - Entity $OldStdsTableItems - Force
228
+ } catch {
229
+ # donothing
230
+ }
227
231
}
228
232
}
229
233
Original file line number Diff line number Diff line change @@ -42,14 +42,6 @@ Function Invoke-ListStandards {
42
42
StandardsExport = ($tenant.Standards.psobject.properties.name ) -join ' , '
43
43
}
44
44
}
45
- if (! $CurrentStandards ) {
46
- $CurrentStandards = [PSCustomObject ]@ {
47
- displayName = ' No Standards applied'
48
- appliedBy = $null
49
- appliedAt = $null
50
- standards = @ {none = $null }
51
- }
52
- }
53
45
54
46
$CurrentStandards = ConvertTo-Json - InputObject @ ($CurrentStandards ) - Depth 15 - Compress
55
47
}
You can’t perform that action at this time.
0 commit comments