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

celeryconfig.py: parse a bool from BROKER_USE_SSL environment variable. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carandraug
Copy link

BROKER_USE_SSL is read from the environ and if it exists it will be a
string and unless it is an empty string it will always eval true. So
parse it properly.


To replicate the issue just try to set it to "False" in the env and see that it always to fail to connect, because the string "False" always evals true. The only way to use the BROKER_USE_SSL environment variable to disable ssl, is to set it to the empty string which I don't think was the intension (and so this patch does not support).

BROKER_USE_SSL is read from the environ and if it exists it will be a
string and unless it is an empty string it will always eval true.  So
parse it properly.
@Didayolo
Copy link
Collaborator

Interesting, indeed the way it is parsed currently is a source of confusion. Thank you for the PR.

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

2 participants