From bc9a40b32d6db4d23b8e9c1a9f705c989d8a7150 Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Tue, 24 Jul 2018 10:10:17 +0300 Subject: [PATCH] scaleway: initialise auth_token to none (#43183) Fixes: #43132 --- contrib/inventory/scaleway.py | 1 + 1 file changed, 1 insertion(+) 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)