diff --git a/contrib/inventory/scaleway.py b/contrib/inventory/scaleway.py index 6f1f2d4fb49..bf55a0e093d 100755 --- a/contrib/inventory/scaleway.py +++ b/contrib/inventory/scaleway.py @@ -152,6 +152,7 @@ def generate_inv_from_api(config): try: inventory['scaleway'] = copy.deepcopy(EMPTY_GROUP) + auth_token = None if config.has_option('auth', 'api_token'): auth_token = config.get('auth', 'api_token') auth_token = env_or_param('SCALEWAY_TOKEN', param=auth_token)