Commit 021b9262 by Matt Martz

Only specify to USE_KEYRING as the api_key/password when we actually got a…

Only specify to USE_KEYRING as the api_key/password when we actually got a keyring_username from ~/.pyrax.cfg
parent 1ac7dffd
...@@ -45,6 +45,7 @@ def setup_rax_module(module, rax_module): ...@@ -45,6 +45,7 @@ def setup_rax_module(module, rax_module):
username = username or os.environ.get('RAX_USERNAME') username = username or os.environ.get('RAX_USERNAME')
if not username: if not username:
username = rax_module.get_setting('keyring_username') username = rax_module.get_setting('keyring_username')
if username:
api_key = 'USE_KEYRING' api_key = 'USE_KEYRING'
if not api_key: if not api_key:
api_key = os.environ.get('RAX_API_KEY') api_key = os.environ.get('RAX_API_KEY')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment