Merge "Fix utils.py to work with the new keystone client"

This commit is contained in:
Jenkins 2014-12-11 02:20:55 +00:00 committed by Gerrit Code Review
commit 6ecab8db22
1 changed files with 5 additions and 4 deletions

View File

@ -115,10 +115,11 @@ def create_mon_client():
def get_token(os_username, os_password, os_project_name, os_auth_url):
keystone = Keystone(os_auth_url,
os_username,
os_password,
os_project_name)
kwargs = { 'keystone_url': os_auth_url,
'username': os_username,
'password': os_password,
'project_domain_name':os_project_name}
keystone = Keystone(kwargs)
return keystone.refresh_token()