1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

scaleway: initialise auth_token to none (#43183)

Fixes: #43132
This commit is contained in:
Theodotos Andreou 2018-07-24 10:10:17 +03:00 committed by Abhijeet Kasurde
parent dd6ef3355f
commit bc9a40b32d

View file

@ -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)