Skip to content

Commit 0514858

Browse files
committed
update alert handling for run from package
1 parent c16a234 commit 0514858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-GetCippAlerts.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using namespace System.Net
22

3-
Function Invoke-GetCippAlerts {
3+
function Invoke-GetCippAlerts {
44
<#
55
.FUNCTIONALITY
66
Entrypoint,AnyTenant
@@ -60,7 +60,7 @@ Function Invoke-GetCippAlerts {
6060
type = 'error'
6161
})
6262
}
63-
if ($env:WEBSITE_RUN_FROM_PACKAGE -ne '1' -and $env:AzureWebJobsStorage -ne 'UseDevelopmentStorage=true') {
63+
if ((!$env:WEBSITE_RUN_FROM_PACKAGE -or [string]::IsNullOrEmpty($env:WEBSITE_RUN_FROM_PACKAGE)) -and $env:AzureWebJobsStorage -ne 'UseDevelopmentStorage=true') {
6464
$Alerts.Add(
6565
@{
6666
title = 'Function App in Write Mode'

0 commit comments

Comments
 (0)