Skip to content

Commit

Permalink
fix panic with web auto heal settings (#23812)
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte authored Nov 7, 2023
1 parent 462045c commit b36aa02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/services/appservice/helpers/auto_heal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b36aa02

Please sign in to comment.