Skip to content

Commit

Permalink
ephemeralWriteOnly: fix build error (#12786)
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Jan 17, 2025
1 parent 3303712 commit a132f08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion mmv1/templates/terraform/expand_property_method.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func expand{{$.GetPrefix}}{{$.TitlelizeProperty}}(v interface{}, d tpgresource.T
{{- end }}{{/* if $.IsA "Map" */}}
{{ if $.NestedProperties }}
{{- range $prop := $.NestedProperties }}
{{- if not (and (hasPrefix $prop.Type "KeyValue") (not $prop.WriteOnly)) }}
{{- if not (and (hasPrefix $prop.Type "KeyValue") $prop.IgnoreWrite (not $prop.WriteOnly)) }}
{{- template "expandPropertyMethod" $prop -}}
{{- end }}
{{- end }}
Expand Down
2 changes: 0 additions & 2 deletions mmv1/templates/terraform/resource.html.markdown.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ The following arguments are supported:
{{- end}}
{{- end }}
{{- "" }}

{{- if $.WriteOnlyProps }}
## Ephemeral Attributes Reference

Expand All @@ -153,7 +152,6 @@ The following write-only attributes are supported:
{{- trimTemplate "nested_property_write_only_documentation.html.markdown.tmpl" $p }}
{{- end }}
{{- end }}

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:
Expand Down

0 comments on commit a132f08

Please sign in to comment.