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

[elastic] Add support for SSL (Elasticsearch Shield) #2195

Merged
merged 1 commit into from
Apr 25, 2016

Conversation

pabrahamsson
Copy link
Contributor

No description provided.

@truthbk
Copy link
Member

truthbk commented Jan 15, 2016

Hi @pabrahamsson! Thank you very much for this PR, it's always great to add SSL support to our checks. We'll give this a test-drive and can hopefully merge in your SSL support in very soon!

Your code is very much appreciated!

@truthbk truthbk added this to the Triage milestone Jan 15, 2016
@remh remh modified the milestones: 5.8.0, Triage Jan 15, 2016
@pabrahamsson
Copy link
Contributor Author

Thanks @truthbk I updated the tests so they pass.

@irabinovitch
Copy link
Contributor

Thanks @pabrahamsson tests look good now. Mind squashing this down?

@pabrahamsson
Copy link
Contributor Author

@irabinovitch squashed, but now showing conflicts, not sure why

@irabinovitch
Copy link
Contributor

@pabrahamsson Try rebasing on master?

@pabrahamsson
Copy link
Contributor Author

@irabinovitch I think we're good now, learning git rebase as I go ¯_(ツ)_/¯

@@ -424,12 +430,29 @@ def _get_data(self, url, config, send_sc=True):
else:
auth = None

# Load SSL configuration, if available.
# ssl_verify can be a bool or a string (http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification)
if isinstance(config.ssl_verify, bool):
Copy link

@remh remh Apr 20, 2016

Choose a reason for hiding this comment

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

This could be rewritten more concisely in

if isinstance(config.ssl_verify, bool) or isinstance(config.ssl_verify, str):
    verify = config.ssl_verify
else:
    verify = None

@pabrahamsson
Copy link
Contributor Author

Thanks @remh
Changed according to your suggestion. Squash?

@pabrahamsson
Copy link
Contributor Author

Squashed

@remh
Copy link

remh commented Apr 25, 2016

Thanks!

@remh remh merged commit e0cf5cf into DataDog:master Apr 25, 2016
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.

4 participants