update_tenant does not allow you to update tenant_name

Bug #863667 reported by Anthony Young
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Yogeshwar

Bug Description

Keystone presently doesn't allow updating of tenantname through the api. Something like this should fix:

--- a/keystone/logic/service.py
+++ b/keystone/logic/service.py
@@ -263,7 +263,9 @@ class IdentityService(object):
         dtenant = api.TENANT.get(tenant_id)
         if dtenant == None:
             raise fault.ItemNotFoundFault("The tenant could not be found")
- values = {'desc': tenant.description, 'enabled': tenant.enabled}
+ values = {'desc': tenant.description,
+ 'enabled': tenant.enabled,
+ 'name': tenant.name}
         api.TENANT.update(tenant_id, values)
         tenant = api.TENANT.get(tenant_id)
         return Tenant(tenant.id, tenant.name, tenant.desc, tenant.enabled)

Revision history for this message
Yogeshwar (yogesh-srikrishnan) wrote :

Update user name should also be supported.Working on this.

Changed in keystone:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Yogeshwar (yogesh-srikrishnan)
Changed in keystone:
status: In Progress → Fix Committed
Joe Savak (jsavak)
tags: added: diablo-backport
Changed in keystone:
milestone: none → essex-1
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-1 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.