terraform/command/jsonplan
Kristin Laemmert 8fb4e5ce6e
command/show: differentiate between state schemas and plan schemas. (#20516)
When a planfile is supplied to the `terraform show -json` command, the
context that loads only included schemas for resources in the plan. We
found an edge case where removing a data source from the configuration
(though only if there are no managed resources from the same provider)
would cause jsonstate.Marshal to fail because the provider schema wasn't
in the plan context.

jsonplan.Marshal now takes two schemas, one for plan and one for state.
If the state schema is nil it will simply use the plan schemas.
2019-03-01 13:59:57 -08:00
..
doc.go json output of terraform plan (#19687) 2018-12-19 11:08:25 -08:00
module.go command/jsonplan: sort resources by address (#20113) 2019-01-25 09:17:40 -08:00
plan.go command/show: differentiate between state schemas and plan schemas. (#20516) 2019-03-01 13:59:57 -08:00
plan_test.go mildwonkey/b-show-state (#20032) 2019-01-23 11:46:53 -08:00
resource.go command/jsonplan: "deposed" should be a string, not a bool. (#20351) 2019-02-19 13:55:49 -08:00
values.go command/show: fixing bugs in modulecalls (#20513) 2019-03-01 13:59:12 -08:00
values_test.go mildwonkey/b-show-state (#20032) 2019-01-23 11:46:53 -08:00