From 76d7344609f2af0560027bdbf26a73bae10c3ce3 Mon Sep 17 00:00:00 2001 From: probicbutez Date: Fri, 27 Jan 2023 11:14:24 +0100 Subject: [PATCH] fix expandFunctionFiles function pointer management --- 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