diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-07-07 19:40:01 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-07-07 19:41:24 +0200 |
commit | 39eb4a176ef2fe52247db4ca551fc0f945ffa2ae (patch) | |
tree | 4ce53f2a43beb87205680c4d3378a7e22b6b75d2 /branding/scripts | |
parent | aeb9f6260fa209d7dfb11212ec7b89c668312b1b (diff) |
[pkg] document how to test builds for float
Diffstat (limited to 'branding/scripts')
-rw-r--r-- | branding/scripts/provider.py | 9 |
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 |