From 7594a38e06732dee7b353f806690b22b71f49e79 Mon Sep 17 00:00:00 2001 From: kt Date: Tue, 7 Nov 2023 12:39:48 -0800 Subject: [PATCH] fix panic with web auto heal settings --- internal/services/appservice/helpers/auto_heal.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/services/appservice/helpers/auto_heal.go b/internal/services/appservice/helpers/auto_heal.go index 06a00c5fa62e..0b518fbd831a 100644 --- a/internal/services/appservice/helpers/auto_heal.go +++ b/internal/services/appservice/helpers/auto_heal.go @@ -401,6 +401,9 @@ func expandAutoHealSettingsWindows(autoHealSettings []AutoHealSettingWindows) *w } autoHeal := autoHealSettings[0] + if len(autoHeal.Triggers) == 0 { + return result + } triggers := autoHeal.Triggers[0] if len(triggers.Requests) == 1 {