If there are no changes on resources, tfcmt should report it as anno-changes label.
Why is the feature needed?
When no moved block is used and no changes happen, tfcmt report no-changes label. However if I use moved block and result was no changes, tfcmt reports it as an add-or-update label. I would expect tfcmt to report no-changes, because moved block is just a refactoring code and no resource changes are happen.
Following to official doc, tfcmt's label is tareget to resource change identification, NOT state change... I believe.
no-changes: there is no resource to be changed
add-or-update: there are resources to be created or updated but there is no resource to be destroyed or recreated
destroy: there are resources to be destroyed or recreated
Example Code
$ tfcmt plan -patch -- terraform plan -no-color
Configuration
moved {
from = old_module.reousrce.main
to = new_module.resource.main
}
note
If tfcmt is looking state change, then current behaiviour is correct.
Feature Overview
If there are no changes on resources, tfcmt should report it as an
no-changes
label.Why is the feature needed?
When no
moved
block is used and no changes happen, tfcmt reportno-changes
label. However if I usemoved
block and result was no changes, tfcmt reports it as anadd-or-update
label. I would expect tfcmt to reportno-changes
, becausemoved
block is just a refactoring code and no resource changes are happen.Following to official doc, tfcmt's label is tareget to resource change identification, NOT state change... I believe.
Example Code
Configuration
note
If tfcmt is looking state change, then current behaiviour is correct.