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

Add skip-tls-verify option #115

Closed
wants to merge 4 commits into from
Closed

Conversation

EinAeffchen
Copy link

This pull request solves issue #114

@jpmckinney
Copy link
Contributor

It looks like you ran a linter. Can you submit a PR that only makes the necessary changes?

@EinAeffchen
Copy link
Author

I've removed the linting and only changed the necessary code, I haven't updated the version file yet though.

Comment on lines +227 to +234
res = requests.post(
url, data=body, headers=headers, verify=not skip_tls_verify
)
if res.ok:
_log("Server response (%s):" % res.status_code)
else:
_log("Deploy failed (%s):" % res.status_code)
_log(json.dumps(res.json(), indent=3))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is not equivalent to _http_post, which print()'ed successful responses without indentation, didn't print anything on URLError and tried to do more on HTTPError.

I recommend just keeping _http_post as-is and making this a much more minimal PR.

@jpmckinney
Copy link
Contributor

Closing as abandoned.

@jpmckinney jpmckinney closed this Oct 11, 2024
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.

2 participants