Task: Simplify the task result checks in CLI #508
Labels
good first issue
Good for newcomers
hacktoberfest
Opt-in with this issue to Hacktoberfest and indicate you’re looking for contributions.
What is the task about?
The RSTUF API has improved the Task
state
result since the release v0.10.0b1On this release, it is no longer necessary to check the
result[status]
to verify the final state of the task as theERRORED
state was introduced.The logic to check can be simplified.
https://github.com/repository-service-tuf/repository-service-tuf-cli/blob/605fcc582aa873a45615d637cfd2f12a1432b058/repository_service_tuf/helpers/api_client.py#L123_L159
Parent feature
No response
References
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: