From ca21bd18602bb8036da287708ea0444c72a18fc7 Mon Sep 17 00:00:00 2001 From: Lev Kogan Date: Mon, 6 Jan 2020 17:42:26 +0000 Subject: [PATCH 1/3] converted function connection strings to Set --- azurerm/internal/services/web/resource_arm_function_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/web/resource_arm_function_app.go b/azurerm/internal/services/web/resource_arm_function_app.go index 96f776392a62..6e9215887df4 100644 --- a/azurerm/internal/services/web/resource_arm_function_app.go +++ b/azurerm/internal/services/web/resource_arm_function_app.go @@ -97,7 +97,7 @@ func resourceArmFunctionApp() *schema.Resource { }, "connection_string": { - Type: schema.TypeList, + Type: schema.TypeSet, Optional: true, Computed: true, Elem: &schema.Resource{ From 06a3fc1ad0939a2ead9d9ba961a2b21528931782 Mon Sep 17 00:00:00 2001 From: Lev Kogan Date: Tue, 7 Jan 2020 11:23:41 +0000 Subject: [PATCH 2/3] function connection string to set fix --- azurerm/internal/services/web/resource_arm_function_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/web/resource_arm_function_app.go b/azurerm/internal/services/web/resource_arm_function_app.go index 6e9215887df4..5155ffcddb8f 100644 --- a/azurerm/internal/services/web/resource_arm_function_app.go +++ b/azurerm/internal/services/web/resource_arm_function_app.go @@ -800,7 +800,7 @@ func flattenFunctionAppSiteConfig(input *web.SiteConfig) []interface{} { } func expandFunctionAppConnectionStrings(d *schema.ResourceData) map[string]*web.ConnStringValueTypePair { - input := d.Get("connection_string").([]interface{}) + input := d.Get("connection_string").(*schema.Set).([]interface{}) output := make(map[string]*web.ConnStringValueTypePair, len(input)) for _, v := range input { From cae1815bed0fbc1e44057105beb89aa37e9fbdcb Mon Sep 17 00:00:00 2001 From: Lev Kogan Date: Tue, 7 Jan 2020 11:33:20 +0000 Subject: [PATCH 3/3] function connection string to set fix --- azurerm/internal/services/web/resource_arm_function_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/web/resource_arm_function_app.go b/azurerm/internal/services/web/resource_arm_function_app.go index 5155ffcddb8f..bad7fc3517a2 100644 --- a/azurerm/internal/services/web/resource_arm_function_app.go +++ b/azurerm/internal/services/web/resource_arm_function_app.go @@ -800,7 +800,7 @@ func flattenFunctionAppSiteConfig(input *web.SiteConfig) []interface{} { } func expandFunctionAppConnectionStrings(d *schema.ResourceData) map[string]*web.ConnStringValueTypePair { - input := d.Get("connection_string").(*schema.Set).([]interface{}) + input := d.Get("connection_string").(*schema.Set).List() output := make(map[string]*web.ConnStringValueTypePair, len(input)) for _, v := range input {