Skip to content
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

openqa-investigate: Improve curl HTTP status handling #92

Merged
merged 1 commit into from Jul 26, 2021

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Jul 23, 2021

Issue: https://progress.opensuse.org/issues/95830

If a HTTP request doesn't return 200, we do not want to continue, and we want
to know the actual URL and status.

Because investigate is called with || do-something, -e is not
in effect, so we check each runcurl call explicitly.

I did the same for the runjq calls.

@foursixnine
Copy link
Member

foursixnine commented Jul 26, 2021

@perlpunk just a quick niptick: investigate instead of ivestigate in the commit message (and title) :)

Issue: https://progress.opensuse.org/issues/95830

If a HTTP request doesn't return 200, we do not want to continue, and we want
to know the actual URL and status.

Because `investigate` is called with `|| do-something`, -e is not
in effect, so we check each `runcurl` call explicitly.
@perlpunk perlpunk changed the title openqa-ivestigate: Improve curl HTTP status handling openqa-investigate: Improve curl HTTP status handling Jul 26, 2021
@perlpunk
Copy link
Contributor Author

@perlpunk just a quick niptick: investigate instead of ivestigate in the commit message (and title) :)

oops. fixed in title and commit :)

@okurz okurz merged commit eafb700 into os-autoinst:master Jul 26, 2021
@perlpunk perlpunk deleted the curl-status-handling branch July 27, 2021 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants