66f96cf842
This was previously targeting the old state manager and state types, so it needed some considerable rework to get it working again with the new state types. Since our new resource address syntax lacks the weird extra .deposed special case we had before, we instead interpret addresses as whole-instance addresses here and remove the deposed objects along with the current one (if present), since this is more likely to match with user expectations because we don't consider deposed objects to be independently addressable in any other situation. With that said, to be more explicit about what is going on we do now have a -dry-run mode and maintain separate counts of current and deposed instances so that we can expose that in the UI where relevant. |
||
---|---|---|
.. | ||
statefile | ||
statemgr | ||
doc.go | ||
eachmode_string.go | ||
instance_generation.go | ||
instance_object.go | ||
instance_object_src.go | ||
module.go | ||
objectstatus_string.go | ||
output_value.go | ||
resource.go | ||
resource_test.go | ||
state.go | ||
state_deepcopy.go | ||
state_equal.go | ||
state_string.go | ||
state_test.go | ||
sync.go |