terraform/command/format
Martin Atkins f193b11073 command/format: Normalize before/after values before rendering
We are now allowing the legacy SDK to opt out of the safety checks we try
to do after plan and apply, and so in such cases the before/after values
in planned changes may be inconsistent with our usual rules.

To avoid adding lots of extra complexity to the diff renderer to deal with
these situations, instead we'll normalize the handling of nested blocks
prior to using these values.

In the long run it'd be better to do this normalization at the source,
immediately after we receive an object from a provider using the opt-out,
but we're doing this at the outermost layer for now to avoid risking
unintended impacts on other Terraform Core components when we're just
about to enter the beta phase of the v0.12.0 release cycle.
2019-02-27 16:53:29 -08:00
..
diagnostic.go command/format: Fix rendering of attribute-agnostic diagnostics 2018-11-26 23:38:37 +00:00
diff.go command/format: Normalize before/after values before rendering 2019-02-27 16:53:29 -08:00
diff_test.go Merge pull request #20089 from hashicorp/t-cmd-fmt-sensitive-update 2019-01-23 15:55:53 +00:00
format.go command/format: a package for formatting plans/state for output 2017-01-26 14:33:49 -08:00
object_id.go command: Reinstate object ids in the UIHook progress logs 2018-10-16 19:14:11 -07:00
object_id_test.go Updates after running `make fmt` with Go v1.11.1 2018-10-17 14:11:08 -07:00
plan.go backend/local: Render CBD replacement (+/-) correctly (#19642) 2018-12-14 13:45:47 +00:00
state.go command/format: fix an issue where data resources were not displaying (#20386) 2019-02-19 14:18:47 -08:00
state_test.go command/format: fix an issue where data resources were not displaying (#20386) 2019-02-19 14:18:47 -08:00