Skip to content

Commit 623d998

Browse files
committed
Allow to pass falsy cert values
This way, a falsy value will be the same as no value for a given cert file. It's easier for deployment tools that use this JSON.
1 parent dc09686 commit 623d998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoconf-entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def permissions_fix(filename):
6666
for key, filename in SUPPORTED_CERTS.items():
6767
full_path = os.path.join(CONF_FOLDER, filename)
6868
# Write PEM file if it came from env variable
69-
if not os.path.exists(full_path) and filename in CERTS:
69+
if not os.path.exists(full_path) and CERTS.get(filename):
7070
with open(full_path, "w") as cert_file:
7171
cert_file.write(CERTS[filename])
7272
if os.path.exists(full_path):

0 commit comments

Comments
 (0)