diff --git a/gen/templates/resource_test.go.tmpl b/gen/templates/resource_test.go.tmpl index c841bc4e5..36f1a929e 100644 --- a/gen/templates/resource_test.go.tmpl +++ b/gen/templates/resource_test.go.tmpl @@ -650,7 +650,7 @@ resource "aci_{{$.resourceName}}" "test" { {{- range $key, $value := $.children}} {{- if eq (len $value) 1}} {{- $child := index $value 0}} - {{- if eq $child.deletable_child true}} + {{- if $child.deletable_child}} {{$key}} = [] {{- end}} {{- else}} @@ -679,7 +679,7 @@ resource "aci_{{$.resourceName}}" "test" { {{- range $key, $value := $.children}} {{- if eq (len $value) 1}} {{- $child := index $value 0}} - {{- if eq $child.deletable_child true}} + {{- if $child.deletable_child}} {{$key}} = [] {{- end}} {{- else}}