diff options
author | Theodotos Andreou <theo@ubuntucy.org> | 2018-07-24 10:10:17 +0300 |
---|---|---|
committer | Abhijeet Kasurde <akasurde@redhat.com> | 2018-07-24 12:40:17 +0530 |
commit | bc9a40b32d6db4d23b8e9c1a9f705c989d8a7150 (patch) | |
tree | ae290861e779f703bf86286bf80c1128cae09d34 /contrib | |
parent | dd6ef3355fc23c2d54061ddd38026600e172a2ae (diff) | |
download | ansible-bc9a40b32d6db4d23b8e9c1a9f705c989d8a7150.tar.gz |
scaleway: initialise auth_token to none (#43183)
Fixes: #43132
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/inventory/scaleway.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/inventory/scaleway.py b/contrib/inventory/scaleway.py index 6f1f2d4fb4..bf55a0e093 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) |