浏览代码

[gunicorn] Fix ManualTLS 7.1.8 cluster install fails as Hue service doesn't start

(cherry picked from commit 2650a6f5321aac46f85455885908af7f752786d4)
Prakash Ranade 3 年之前
父节点
当前提交
685887c933
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/management/commands/rungunicornserver.py

+ 1 - 1
desktop/core/src/desktop/management/commands/rungunicornserver.py

@@ -99,7 +99,7 @@ def rungunicornserver():
   # https://github.com/benoitc/gunicorn/issues/2410
   ssl_keyfile = None
   if conf.SSL_CERTIFICATE.get() and conf.SSL_PRIVATE_KEY.get():
-    ssl_password = str.encode(conf.get_ssl_password())
+    ssl_password = str.encode(conf.get_ssl_password()) if conf.get_ssl_password() is not None else None
     if ssl_password:
       with open(conf.SSL_PRIVATE_KEY.get(), 'r') as f:
         with tempfile.NamedTemporaryFile(dir=os.path.dirname(