Files
opentf/command
Kristin Laemmert b9f114aa25 command/show (json): marshal the state snapshot included with the plan file (#21597)
* command/show: marshal the state snapshot from the planfile

The planfile contains a state snapshot with certain resources updated
(outputs and datasources). Previously `terraform show -json PLANFILE`
was using the current state instead of the state inside the plan as
intended.

This caused an issue when the state included a terraform_remote_state
datasource. The datasource's state gets refreshed - and therefore
upgraded to the current state version - during plan, but that won't
persist to state until apply.

* update comment to reflect new return
2019-06-05 07:29:02 -04:00
..
2015-04-29 13:07:13 -05:00
2018-10-16 19:14:11 -07:00
2018-10-16 19:14:11 -07:00
2018-01-09 23:13:33 +00:00
2019-03-01 12:30:51 -08:00
2018-10-16 18:24:47 -07:00
2018-11-26 23:38:37 +00:00
2014-05-24 12:04:43 -07:00