diff options
| author | Anthony Young <sleepsonthefloor@gmail.com> | 2011-09-22 15:34:14 -0700 |
|---|---|---|
| committer | Anthony Young <sleepsonthefloor@gmail.com> | 2011-09-22 16:02:34 -0700 |
| commit | f8ec11d75fbdc58e5c9700b4afdd3baaeae2e9e6 (patch) | |
| tree | 2292c355e6a0dafab3b9963a3cc6ac2e8ad0073a | |
| parent | b40540f68408f5ae87713dd9c96adaa8542578a4 (diff) | |
Fix for bug 856857 - add user.name to User() constructor to re-align param
* Also fix the Tenant() constructor in get_tenant
Change-Id: I473af83f270a38eac934f0d656aee6e20e8d20c3
| -rwxr-xr-x | keystone/logic/service.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keystone/logic/service.py b/keystone/logic/service.py index 24bf1871..c07dd514 100755 --- a/keystone/logic/service.py +++ b/keystone/logic/service.py @@ -242,7 +242,7 @@ class IdentityService(object): dtenant = api.TENANT.get(tenant_id) if not dtenant: raise fault.ItemNotFoundFault("The tenant could not be found") - return Tenant(dtenant.id, dtenant.desc, dtenant.enabled) + return Tenant(dtenant.id, dtenant.name, dtenant.desc, dtenant.enabled) def update_tenant(self, admin_token, tenant_id, tenant): self.__validate_admin_token(admin_token) @@ -342,7 +342,7 @@ class IdentityService(object): dtenantusers = api.USER.users_get_by_tenant_get_page(tenant_id, marker, limit) for dtenantuser in dtenantusers: - ts.append(User(None, dtenantuser.id, tenant_id, + ts.append(User(None, dtenantuser.id, tenant_id, dtenantuser.name, dtenantuser.email, dtenantuser.enabled, dtenantuser.tenant_roles if hasattr(dtenantuser, "tenant_roles") else None)) @@ -363,7 +363,7 @@ class IdentityService(object): ts = [] dusers = api.USER.users_get_page(marker, limit) for duser in dusers: - ts.append(User(None, duser.id, duser.tenant_id, + ts.append(User(None, duser.id, duser.tenant_id, duser.name, duser.email, duser.enabled)) links = [] if ts.__len__(): |
