I've noticed that the Atlantis API displays terraf...
# atlantis-community
s
I've noticed that the Atlantis API displays terraform ooutput when plans are run. however, it does not display output when plans fail. anyone know when this might be addressed?
@PePe Amengual as you may know.
p
ohhh that is interesting
are you trying to trigger all your workflows through the API or just a drift detection?
s
yeah. i'm trying to trigger all the workflows so that i detect the drift on the outputs.
the api plan response has a PlanSuccess, but no PlanFailure key, which i should have tested before hand.
but now i know 🙂
p
is there an exit status?
s
nope, never an exist status on success or failure. this is what the output looks like on plan faiure: { "Error": null, "Failure": "", "ProjectResults": [ { "Command": 1, "SubCommand": "", "RepoRelDir": "dev/deployments/cluster", "Workspace": "dev-cluster", "Error": {}, "Failure": "", "PlanSuccess": null, "PolicyCheckResults": null, "ApplySuccess": "", "VersionSuccess": "", "ImportSuccess": null, "StateRmSuccess": null, "ProjectName": "dev-cluster" } ], "PlansDeleted": false
that command: 1, is always 1 regardless of the call.
p
maybe that needs fixing
PRs are welcome