Skip to content

Commit

Permalink
updating api
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedahn committed Sep 30, 2011
1 parent 51668c4 commit 7465bf7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions django-openstack/django_openstack/api.py
Expand Up @@ -599,8 +599,8 @@ def token_list_tenants(request, token):
return [Tenant(t) for t in auth_api().tenants.for_token(token)]


def tenant_create(request, name, description, enabled):
return Tenant(account_api(request).tenants.create(name,
def tenant_create(request, tenant_name, description, enabled):
return Tenant(account_api(request).tenants.create(tenant_name,
description,
enabled))

Expand Down Expand Up @@ -628,8 +628,9 @@ def users_list_for_token_and_tenant(request, token, tenant):
return [User(u) for u in admin_account.users.get_for_tenant(tenant)]


def tenant_update(request, tenant_id, description, enabled):
def tenant_update(request, tenant_id, tenant_name, description, enabled):
return Tenant(account_api(request).tenants.update(tenant_id,
tenant_name,
description,
enabled))

Expand Down

0 comments on commit 7465bf7

Please sign in to comment.