Merge pull request #14461 from seacrib/nova_password_fix

Check if api_key is set in kwargs instead of checking for key
This commit is contained in:
Joseph Hall 2014-07-24 11:48:25 -06:00
commit 4d176726de

View File

@ -119,7 +119,7 @@ class SaltNova(object):
self.kwargs['auth_plugin'] = auth_plugin
self.kwargs['auth_system'] = os_auth_plugin
if 'api_key' not in self.kwargs.keys():
if not self.kwargs.get('api_key', None):
self.kwargs['api_key'] = password
extensions = []
if 'extensions' in kwargs: