Преглед на файлове

Ignore licensing if URL is empty string.

Nashwan Azhari преди 6 години
родител
ревизия
b4031dc360
променени са 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.
         Returns None if 'LICENSING_SERVER_BASE_URL' is not defined.
         """
         """
         base_url = os.environ.get("LICENSING_SERVER_BASE_URL")
         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(
             LOG.warn(
                 "No 'LICENSING_SERVER_BASE_URL' env var present. Cannot "
                 "No 'LICENSING_SERVER_BASE_URL' env var present. Cannot "
                 "instantiate licensing client.")
                 "instantiate licensing client.")