Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

When no playbooks are found, differentiate between "the api server works but is empty" vs "could not connect to remote api server" #9

Closed
dmsimard opened this issue May 28, 2019 · 2 comments

Comments

@dmsimard
Copy link
Contributor

Right now, if there's either no API server running or if there are no playbooks found, the error returned will be the same:

Screenshot from 2019-05-28 11-46-20

We should be able to tell if the remote API server is up and running by retrieving the version of ARA API server at "/", for example:

Screenshot from 2019-05-28 11-48-13

@guillaumevincent
Copy link
Contributor

yes let me improve this

@dmsimard
Copy link
Contributor Author

Tested https://review.opendev.org/#/c/661940/ and works for me !

When the server is offline or can't be reached:
Screenshot from 2019-05-29 08-51-29

When the server is online but empty:
Screenshot from 2019-05-29 08-52-40

Great work, thanks @guillaumevincent !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants