cloudbuilders/openstackx — Issue #21: TenantManager update method parameter name mismatch
Author: ryu25ish
Created: 2011-10-12 22:53:45+00:00
State: open

In openstackx/extras/tenants.py, look at TenantManager class' update method, which has the following signature:

def update(self, tenant_id, tenant_name=None, description=None, enabled=None):

But inside this method, 'tenant_name' is referred to as 'name' in a few places:

if name is not None:
body['tenant']['name'] = name

Looks like a simple typo mistake. 'name' here should be changed to 'tenant_name'.