terraform plan -refresh-only -detailed-exitcode gives incorrect exit code 2 even if the console output says no changes detected #35117
Labels
bug
new
new issue not yet triaged
waiting for reproduction
unable to reproduce issue without further information
waiting-response
An issue/pull request is waiting for a response from the community
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
The text was updated successfully, but these errors were encountered: