Fix parameter name passed to trust operations

The api accepts project_id while we use project for ID.

Change-Id: I4987a0afc83f5fd758c13be5da2c86236e016d69
This commit is contained in:
tengqm
2015-07-17 09:32:50 -04:00
parent cd9b278410
commit fd06013c55

View File

@@ -108,7 +108,7 @@ class KeystoneClient(base.DriverBase):
if trustee:
filters['trustee_user_id'] = trustee
if project:
filters['project'] = project
filters['project_id'] = project
try:
trusts = [t for t in self.conn.identity.trusts(**filters)]
@@ -136,7 +136,7 @@ class KeystoneClient(base.DriverBase):
params = {
'trustor_user_id': trustor,
'trustee_user_id': trustee,
'project': project,
'project_id': project,
'impersonation': impersonation,
'allow_redelegation': True,
'roles': role_list