From 487c312cd383c27022fba6358bb962caf376651e Mon Sep 17 00:00:00 2001 From: Jochen Rauschenbusch Date: Fri, 19 Jun 2020 10:11:18 +0200 Subject: [PATCH] add field index check Co-authored-by: Matthew Frahry --- azurerm/internal/services/kusto/kusto_cluster_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/kusto/kusto_cluster_resource.go b/azurerm/internal/services/kusto/kusto_cluster_resource.go index d9af417a9d7af..249ac93721c55 100644 --- a/azurerm/internal/services/kusto/kusto_cluster_resource.go +++ b/azurerm/internal/services/kusto/kusto_cluster_resource.go @@ -329,7 +329,7 @@ func expandKustoClusterSku(d *schema.ResourceData) (*kusto.AzureSku, error) { } func expandKustoClusterVNET(input []interface{}) *kusto.VirtualNetworkConfiguration { - if len(input) == 0 { + if len(input) == 0 || input[0] == nil { return nil }