فهرست منبع

Fix licensing client crashing if when 'LICENSING_SERVER_BASE_URL=None'.

Nashwan Azhari 7 سال پیش
والد
کامیت
4ed646b605
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      coriolis/licensing/client.py

+ 1 - 1
coriolis/licensing/client.py

@@ -33,7 +33,7 @@ class LicensingClient(object):
         Returns None if 'LICENSING_SERVER_BASE_URL' is not defined.
         """
         base_url = os.environ.get("LICENSING_SERVER_BASE_URL")
-        if not base_url:
+        if base_url in [None, "None", "null"]:
             LOG.warn(
                 "No 'LICENSING_SERVER_BASE_URL' env var present. Cannot "
                 "instantiate licensing client.")