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

[http_check] Fix status type err. in service check #1644

Merged
merged 1 commit into from
May 27, 2015

Conversation

elafarge
Copy link
Contributor

PyYaml was returning an int for the expected status code when
"http_response_status_code: 200" (for instance) was used in the yaml
config while a Regex (and therefore an string) is expected. I added a
cast to avoid that from happening again. I also added some doc to tell
our customers about the possibility to use a Regex for this parameter.

@elafarge elafarge changed the title Etienne/http check status config fix [http_check] Fix status type err. in service check May 27, 2015
PyYaml was returning an int for the expected status code when
"http_response_status_code: 200" (for instance) was used in the yaml
config while a Regex (and therefore an string) is expected.

Added a line to the http_check.yaml.conf.example file to document the
possibility for the user to use a Regex if he wants to define a set of
"CONNECTION_OK" HTTP status codes (and not only a single one).
@LeoCavaille LeoCavaille force-pushed the etienne/http_check_status_config_fix branch from e480a15 to cbd9e11 Compare May 27, 2015 12:01
@LeoCavaille LeoCavaille merged commit cbd9e11 into master May 27, 2015
@LeoCavaille LeoCavaille deleted the etienne/http_check_status_config_fix branch May 27, 2015 12:02
@elafarge
Copy link
Contributor Author

Thanks for the merge :)

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