From c4cc4a2ce8ddeb3d503a2cae0a5b3a7d4d2c5d65 Mon Sep 17 00:00:00 2001 From: Ravina Dhruve Date: Fri, 20 Oct 2023 13:51:12 -0700 Subject: [PATCH] fix(secure-onboarding) Fix variable initialization during cloudaccount feature reads --- sysdig/resource_sysdig_secure_cloud_auth_account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdig/resource_sysdig_secure_cloud_auth_account.go b/sysdig/resource_sysdig_secure_cloud_auth_account.go index ed286d46..98a345bc 100644 --- a/sysdig/resource_sysdig_secure_cloud_auth_account.go +++ b/sysdig/resource_sysdig_secure_cloud_auth_account.go @@ -480,9 +480,9 @@ func featureToResourceData(features *cloudauth.AccountFeatures) []interface{} { } allFeatures := make(map[string]interface{}) - featureBlock := make([]map[string]interface{}, 0) for name, feature := range featureFields { if feature != nil { + featureBlock := make([]map[string]interface{}, 0) value := featureValuesToResourceData(feature) featureBlock = append(featureBlock, value)