Fix utils.py to work with the new keystone client

This allows measurement_test.py to run

Change-Id: I2c097935442d2e6eca2c290cfb4329ec995b0b17
This commit is contained in:
Craig Bryant 2014-12-10 09:19:47 -07:00
parent b37a458991
commit ba8fae61d8

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