Skip to content

Commit 5b77776

Browse files
fix(secure-onboarding) Fix variable initialization during cloudaccount feature reads (#433)
1 parent e1eefe8 commit 5b77776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sysdig/resource_sysdig_secure_cloud_auth_account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ func featureToResourceData(features *cloudauth.AccountFeatures) []interface{} {
480480
}
481481

482482
allFeatures := make(map[string]interface{})
483-
featureBlock := make([]map[string]interface{}, 0)
484483
for name, feature := range featureFields {
485484
if feature != nil {
485+
featureBlock := make([]map[string]interface{}, 0)
486486
value := featureValuesToResourceData(feature)
487487
featureBlock = append(featureBlock, value)
488488

0 commit comments

Comments
 (0)