mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Support keyring for the api_key
This commit is contained in:
parent
fe091ec00d
commit
d7597414b8
1 changed files with 5 additions and 2 deletions
|
@ -33,6 +33,9 @@ def setup_rax_module(module, rax_module):
|
|||
rax_module.set_setting('identity_type', 'rackspace')
|
||||
|
||||
if api_key and username:
|
||||
if api_key == 'USE_KEYRING':
|
||||
rax_module.keyring_auth(username)
|
||||
else:
|
||||
rax_module.set_credentials(username, api_key=api_key,
|
||||
region=region)
|
||||
elif credentials:
|
||||
|
|
Loading…
Reference in a new issue