terraform/internal/command/jsonformat/structured
kmoe 8f3aa0e099
jsonformat: render forget-only attr changes as no-op (#34403)
* jsonplan: document forget actions

* jsonformat: format forget changes as no-op

Previous to this commit, forget-only actions (i.e. "forget", not "create then forget") would be rendered using the forget action symbol for the top-level resource, and the delete action symbol for each resource attribute, with a new value of "null". This attribute rendering is identical to that for resource deletion, which might suggest to some users that Terraform plans to delete the resource, not just remove it from state.
This commit tweaks the renderer so forget-only changes render as no-ops but with the forget action symbol and resource change comment.
2023-12-12 20:02:38 +00:00
..
attribute_path Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
change.go jsonformat: render forget-only attr changes as no-op (#34403) 2023-12-12 20:02:38 +00:00
doc.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
map.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
sensitive.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
slice.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
unknown.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00