Skip to content

Commit

Permalink
azurerm_windows_web_app and azurerm_windows_web_app_slot - fix do…
Browse files Browse the repository at this point in the history
…cker windowsfxversion string clobbering (#16192)
  • Loading branch information
jackofallops authored Apr 5, 2022
1 parent 949ce50 commit 4fab12d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/services/appservice/helpers/web_app_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -2790,8 +2790,9 @@ func ExpandSiteConfigWindows(siteConfig []SiteConfigWindows, existing *web.SiteC
if winAppStack.DockerContainerName != "" {
if winAppStack.DockerContainerRegistry != "" {
expanded.WindowsFxVersion = utils.String(fmt.Sprintf("DOCKER|%s/%s:%s", winAppStack.DockerContainerRegistry, winAppStack.DockerContainerName, winAppStack.DockerContainerTag))
} else {
expanded.WindowsFxVersion = utils.String(fmt.Sprintf("DOCKER|%s:%s", winAppStack.DockerContainerName, winAppStack.DockerContainerTag))
}
expanded.WindowsFxVersion = utils.String(fmt.Sprintf("DOCKER|%s:%s", winAppStack.DockerContainerName, winAppStack.DockerContainerTag))
}
currentStack = winAppStack.CurrentStack
}
Expand Down
3 changes: 2 additions & 1 deletion internal/services/appservice/helpers/web_app_slot_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,9 @@ func ExpandSiteConfigWindowsWebAppSlot(siteConfig []SiteConfigWindowsWebAppSlot,
if winAppStack.DockerContainerName != "" {
if winAppStack.DockerContainerRegistry != "" {
expanded.WindowsFxVersion = utils.String(fmt.Sprintf("DOCKER|%s/%s:%s", winAppStack.DockerContainerRegistry, winAppStack.DockerContainerName, winAppStack.DockerContainerTag))
} else {
expanded.WindowsFxVersion = utils.String(fmt.Sprintf("DOCKER|%s:%s", winAppStack.DockerContainerName, winAppStack.DockerContainerTag))
}
expanded.WindowsFxVersion = utils.String(fmt.Sprintf("DOCKER|%s:%s", winAppStack.DockerContainerName, winAppStack.DockerContainerTag))
}
currentStack = winAppStack.CurrentStack
}
Expand Down

0 comments on commit 4fab12d

Please sign in to comment.