Преглед изворни кода

Fix licensing client env flag loading.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
Nashwan Azhari пре 2 година
родитељ
комит
914aa2215b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      coriolis/licensing/client.py

+ 1 - 1
coriolis/licensing/client.py

@@ -44,7 +44,7 @@ class LicensingClient(object):
                 "instantiate licensing client.")
             return None
         allow_untrusted = os.environ.get(
-            "LICENSING_SERVER_ALLOW_UNTRUSTED", False)
+            "LICENSING_SERVER_ALLOW_UNTRUSTED", None) != None
         client = cls(
             base_url, appliance_id=None, allow_untrusted=allow_untrusted)
         appliance_ids = client.get_appliances()