-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recipe for using Foyle endpoints with if/else #236
Comments
One pattern could be to do
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our playbooks rely on using CURL to hit various endpoints. We often pipe the output to
jq
for further processingThe problem with this is that it doesn't play well with the case where the request fails or returns an error. In which case we should abort rather than piping to jq.
So I think we need to use an if/else statement. But what's a good recipe for testing whether it succeeded?
The text was updated successfully, but these errors were encountered: