mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
72dd14ca5c
Previously we tried to early-exit before doing anything at all for any no-op changes, but that means we also skip some ancillary steps like evaluating any preconditions/postconditions. Now we'll skip only the main action itself for plans.NoOp, and still run through all of the other side-steps. Since one of those other steps is emitting events through the hooks interface, this means that now no-op actions are visible to hooks, whereas before we always filtered them out before calling. I therefore added some additional logic to the hooks to filter them out at the UI layer instead; the decision for whether or not to report that we visited a particular object and found no action required seems defensible as a UI-level concern anyway. |
||
---|---|---|
.. | ||
json | ||
testdata/show | ||
apply_test.go | ||
apply.go | ||
hook_count_test.go | ||
hook_count.go | ||
hook_json_test.go | ||
hook_json.go | ||
hook_ui_test.go | ||
hook_ui.go | ||
json_view_test.go | ||
json_view.go | ||
operation_test.go | ||
operation.go | ||
output_test.go | ||
output.go | ||
plan_test.go | ||
plan.go | ||
refresh_test.go | ||
refresh.go | ||
show_test.go | ||
show.go | ||
state_locker.go | ||
test_test.go | ||
test.go | ||
validate_test.go | ||
validate.go | ||
view.go |