Skip to content

Commit

Permalink
F1439 null cap vars (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssickles committed May 6, 2023
1 parent 0cd9e63 commit a9c4a75
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions capabilities.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ module "{{ .TfModuleName }}" {
{{- end }}

app_metadata = local.app_metadata

{{- range $key, $value := .Variables }}
{{ if not $value.Unused -}}
{{ range $key, $value := .Variables -}}
{{ if $value.HasValue -}}
{{ $key }} = jsondecode({{ $value.Value | to_json_string }})
{{- end }}{{ end }}

{{- end }}
{{ end }}
providers = {
ns = ns.cap_{{ .Id}}
}
Expand Down

0 comments on commit a9c4a75

Please sign in to comment.