opentofu/internal/command/jsonplan
Martin Atkins 4cffff24b1 core: Report reason for deferring data read until apply
We have two different reasons why a data resource might be read only
during apply, rather than during planning as usual: the configuration
contains unknown values, or the data resource as a whole depends on a
managed resource which itself has a change pending.

However, we didn't previously distinguish these two in a way that allowed
the UI to describe the difference, and so we confusingly reported both
as "config refers to values not yet known", which in turn led to a number
of reasonable questions about why Terraform was claiming that but then
immediately below showing the configuration entirely known.

Now we'll use our existing "ActionReason" mechanism to tell the UI layer
which of the two reasons applies to a particular data resource instance.
The "dependency pending" situation tends to happen in conjunction with
"config unknown", so we'll prefer to refer that the configuration is
unknown if both are true.
2022-05-09 11:12:47 -07:00
..
condition.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
doc.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
module.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
plan_test.go jsonplan: Improve performance for deep objects 2022-02-18 17:00:18 -05:00
plan.go core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00
resource.go json-output: Previous address for resource changes 2021-09-20 15:25:23 -04:00
values_test.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00
values.go json-output: Add output type to JSON format 2022-04-27 13:30:15 -04:00