Skip to content

Commit

Permalink
azuerm_function_app - correctly set kind when os_type is linux (#7140)
Browse files Browse the repository at this point in the history
There is a typo in the code where osType is "Linux" instead of "linux". The format does not match with checks and other parts of the code such as in row 354.

Current behaviour causes the function app to be generated as Windows despite the value of os_type. This fixes #6931 for example.
  • Loading branch information
markusleh committed May 30, 2020
1 parent 4d21dae commit 502154a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/internal/services/web/resource_arm_function_app.go
Expand Up @@ -448,7 +448,7 @@ func resourceArmFunctionAppUpdate(d *schema.ResourceData, meta interface{}) erro
kind := "functionapp"
if osTypeRaw, ok := d.GetOk("os_type"); ok {
osType := osTypeRaw.(string)
if osType == "Linux" {
if osType == "linux" {
kind = "functionapp,linux"
}
}
Expand Down

0 comments on commit 502154a

Please sign in to comment.