terraform/internal/command/format
Alisdair McDiarmid 5fc3ba37a6 cli: Improve sensitivity change warning output
When an attribute value changes in sensitivity, we previously rendered
this in the diff with a `~` update action and a note about the
consequence of the sensitivity change. Since we also suppress the
attribute value, this made it impossible to know if the underlying value
was changing, too, which has significant consequences on the meaning of
the plan.

This commit adds an equality check of the old/new underlying values. If
these are unchanged, we add a note to the sensitivity warning to clarify
that only sensitivity is changing.
2021-05-18 10:33:25 -04:00
..
diagnostic.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
diagnostic_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
diff.go cli: Improve sensitivity change warning output 2021-05-18 10:33:25 -04:00
diff_test.go cli: Improve sensitivity change warning output 2021-05-18 10:33:25 -04:00
format.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
object_id.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
object_id_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
state.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
state_test.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
trivia.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00