浏览代码

Merge pull request #80 from aznashwan/missing-licensing

Ignore licensing if URL is empty string.
Nashwan Azhari 6 年之前
父节点
当前提交
989ed4507f
共有 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 base_url in [None, "None", "null"]:
+        if base_url in ["", None, "None", "null"]:
             LOG.warn(
                 "No 'LICENSING_SERVER_BASE_URL' env var present. Cannot "
                 "instantiate licensing client.")