summaryrefslogtreecommitdiff
path: root/branding/scripts
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-07-07 19:40:01 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-07-07 19:41:24 +0200
commit39eb4a176ef2fe52247db4ca551fc0f945ffa2ae (patch)
tree4ce53f2a43beb87205680c4d3378a7e22b6b75d2 /branding/scripts
parentaeb9f6260fa209d7dfb11212ec7b89c668312b1b (diff)
[pkg] document how to test builds for float
Diffstat (limited to 'branding/scripts')
-rw-r--r--branding/scripts/provider.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/branding/scripts/provider.py b/branding/scripts/provider.py
index 22b36fd..90daa13 100644
--- a/branding/scripts/provider.py
+++ b/branding/scripts/provider.py
@@ -3,13 +3,12 @@ import os
def getDefaultProvider(config):
- if os.environ.get('VENDOR_PATH'):
+ provider = os.environ.get('PROVIDER')
+ if provider:
+ print('[+] Got provider {} from environment'.format(provider))
+ else:
print('[+] Using default provider from config file')
provider = config['default']['provider']
- else:
- provider = os.environ.get('PROVIDER')
- if provider:
- print('[+] Got provider {} from environment'.format(provider))
return provider