opentofu/internal/plans
Alisdair McDiarmid c5d10bdef1 core: Store condition block results in plan
In order to include condition block results in the JSON plan output, we
must store them in the plan and its serialization.

Terraform can evaluate condition blocks multiple times, so we must be
able to update the result. Accordingly, the plan.Conditions object is a
map with keys representing the condition block's address. Condition
blocks are not referenceable in any other context, so this address form
cannot be used anywhere in the configuration.

The commit includes a new test case for the JSON output of a
refresh-only plan, which is currently the only way for a failing
condition result to be rendered through this path.
2022-04-04 15:36:29 -04:00
..
internal/planproto core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
objchange add test for planing unknown data source values 2021-10-05 12:31:23 -04:00
planfile core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
action_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
action.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
changes_src.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes_state.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_sync.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_test.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes.go decode change before creating diff 2022-03-17 09:35:36 -04:00
conditions.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
doc.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
dynamic_value.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
resourceinstancechangeactionreason_string.go core: Report ActionReasons when we plan to delete "orphans" 2021-09-23 14:37:08 -07:00