diff options
Diffstat (limited to 'branding/scripts/provider.py')
-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 |