Skip to content

Commit

Permalink
fix(linux_web_app_*): Set "AlwaysOn" property on update
Browse files Browse the repository at this point in the history
  • Loading branch information
Apokalypt committed Apr 23, 2024
1 parent 143dd98 commit 8ceea6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*webap
func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error) {
expanded := *existing

expanded.AlwaysOn = pointer.To(s.AlwaysOn)
expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR)
expanded.AutoHealEnabled = pointer.To(s.AutoHeal)
expanded.HTTP20Enabled = pointer.To(s.Http2Enabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin
func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error) {
expanded := *existing

expanded.AlwaysOn = pointer.To(s.AlwaysOn)
expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR)
expanded.AutoHealEnabled = pointer.To(s.AutoHeal)
expanded.HTTP20Enabled = pointer.To(s.Http2Enabled)
Expand Down

0 comments on commit 8ceea6f

Please sign in to comment.