We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2acb0ef commit bd7031aCopy full SHA for bd7031a
mmv1/templates/terraform/examples/base_configs/test_file.go.tmpl
@@ -102,8 +102,8 @@ func TestAcc{{ $e.TestSlug $.Res.ProductMetadata.Name $.Res.Name }}(t *testing.T
102
},
103
{{- end }}
104
{{- if eq $i 0 }}
105
- {{- if lt (index $.Res.ProductMetadata.ApiName 0) 'a' }}
106
-
+ {{- $firstChar := index $.Res.ProductMetadata.ApiName 0 -}}
+ {{- if or (and (ge $firstChar 'a') (le $firstChar 'b')) (eq $firstChar 'c') (eq $firstChar 'd') }}
107
{
108
ResourceName: "{{ $.Res.TerraformName }}.{{ $e.PrimaryResourceId }}",
109
RefreshState: true,
0 commit comments