From 950195eb0eb6785a117f6f5c8d44b9dbd8aed5d9 Mon Sep 17 00:00:00 2001 From: Khuzd <38312725+Khuzd@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:53:22 +0100 Subject: [PATCH] `azurerm_function_app_function` - fix bug in file name pointer (#20198) Co-authored-by: probicbutez fixes https://github.com/hashicorp/terraform-provider-azurerm/issues/17266 --- internal/services/appservice/function_app_function_resource.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/services/appservice/function_app_function_resource.go b/internal/services/appservice/function_app_function_resource.go index 448912d93d77..10bffcc22ced 100644 --- a/internal/services/appservice/function_app_function_resource.go +++ b/internal/services/appservice/function_app_function_resource.go @@ -479,7 +479,8 @@ func expandFunctionFiles(input []FunctionFiles) map[string]*string { } result := make(map[string]*string) for _, v := range input { - result[v.Name] = &v.Content + content := v.Content + result[v.Name] = &content } return result