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

Inconsistent handling of env vars #160

Open
nutjob4life opened this issue Apr 30, 2021 · 1 comment
Open

Inconsistent handling of env vars #160

nutjob4life opened this issue Apr 30, 2021 · 1 comment

Comments

@nutjob4life
Copy link
Member

The variable ZEO_SHARED_BLOB_DIR can be set to on if the ZEO server and the instance have access to the same directory; defaults to off

But the variable ZEO_PACK_KEEP_OLD must be set to false, no, 0, n, or f to disable the pack to keep the old db. Setting it to off doesn't do it ❌

It'd sure be nice if these two boolean environment variables treated boolean values the same 😬

nutjob4life added a commit to EDRN/P5 that referenced this issue Apr 30, 2021
nutjob4life added a commit to MCLConsortium/mcl-site that referenced this issue Apr 30, 2021
@avoinea
Copy link
Sponsor Member

avoinea commented May 5, 2021

@nutjob4life Indeed:

We have:

if pack_keep_old.lower() in ("false", "no", "0", "n", "f"):

while:

shared_blob_dir=self.env.get("ZEO_SHARED_BLOB_DIR", "off")

A PR would be appreciated 😉

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

No branches or pull requests

2 participants