Terraform Version
Terraform Configuration Files
Debug Output
I tried to get the exit code displayed on console it gives 2 even if there are no changes detected as per terraform
Expected Behavior
It should return 0 as there are no changes present as per the console
Actual Behavior
terraform plan -refresh-only -detailed-exitcode gives incorrect exit code 2 even if the console output says no changes detected
Steps to Reproduce
we used this command as a part of ADO pipeline drift detection
$terraform plan -refresh-only -detailied-exitcode
Additional Context


References
No response
Terraform Version
Terraform Configuration Files
Debug Output
I tried to get the exit code displayed on console it gives 2 even if there are no changes detected as per terraform
Expected Behavior
It should return 0 as there are no changes present as per the console
Actual Behavior
terraform plan -refresh-only -detailed-exitcode gives incorrect exit code 2 even if the console output says no changes detected
Steps to Reproduce
we used this command as a part of ADO pipeline drift detection
$terraform plan -refresh-only -detailied-exitcode
Additional Context
References
No response