scaleway: initialise auth_token to none (#43183)

Fixes: #43132
pull/43190/head
Theodotos Andreou 6 years ago committed by Abhijeet Kasurde
parent dd6ef3355f
commit bc9a40b32d

@ -152,6 +152,7 @@ def generate_inv_from_api(config):
try: try:
inventory['scaleway'] = copy.deepcopy(EMPTY_GROUP) inventory['scaleway'] = copy.deepcopy(EMPTY_GROUP)
auth_token = None
if config.has_option('auth', 'api_token'): if config.has_option('auth', 'api_token'):
auth_token = config.get('auth', 'api_token') auth_token = config.get('auth', 'api_token')
auth_token = env_or_param('SCALEWAY_TOKEN', param=auth_token) auth_token = env_or_param('SCALEWAY_TOKEN', param=auth_token)

Loading…
Cancel
Save