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

Fix elasticsearch facts and http check #1170

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Conversation

fe80
Copy link
Contributor

@fe80 fe80 commented Sep 12, 2022

Pull Request (PR) description

Hello,

The actual fact check if json data have a status key at 200, but I never find this key. I've change to check the response code and also if json have 2 require keys.

I've also fix the empty? check for elasticsearch fact

This Pull Request (PR) fixes the following issues

* Fix http response code and json context
* Fix elasticsearch, return nil if nodes is empty
@smortex smortex merged commit 1095775 into voxpupuli:master Sep 13, 2022
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