summaryrefslogtreecommitdiff
path: root/keystoneclient/v2_0/users.py
diff options
context:
space:
mode:
authorJoe Heck <heckj@mac.com>2011-11-10 08:51:12 -0800
committerJoe Heck <heckj@mac.com>2011-11-10 08:51:12 -0800
commite2d98e58447e9375706a4d33777cc4ed326380a7 (patch)
treef147a7ea2a9de4aea20c38bc1c70d3a06cfe4b95 /keystoneclient/v2_0/users.py
parent6cd7a4302452ef9f801629d3f4c6a61bb61bc6f6 (diff)
downloadpython-keystoneclient-e2d98e58447e9375706a4d33777cc4ed326380a7.tar.gz
pep8 cleanup
Diffstat (limited to 'keystoneclient/v2_0/users.py')
-rw-r--r--keystoneclient/v2_0/users.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/keystoneclient/v2_0/users.py b/keystoneclient/v2_0/users.py
index c44939e..6045153 100644
--- a/keystoneclient/v2_0/users.py
+++ b/keystoneclient/v2_0/users.py
@@ -37,7 +37,7 @@ class UserManager(base.ManagerWithFind):
"""
# FIXME(ja): why do we have to send id in params and url?
params = {"user": {"id": base.getid(user),
- "email": email }}
+ "email": email}}
return self._update("/users/%s" % base.getid(user), params, "user")
@@ -46,7 +46,7 @@ class UserManager(base.ManagerWithFind):
Update enabled-ness
"""
params = {"user": {"id": base.getid(user),
- "enabled": enabled }}
+ "enabled": enabled}}
self._update("/users/%s/enabled" % base.getid(user), params, "user")
@@ -55,26 +55,28 @@ class UserManager(base.ManagerWithFind):
Update password
"""
params = {"user": {"id": base.getid(user),
- "password": password }}
+ "password": password}}
- return self._update("/users/%s/password" % base.getid(user), params, "user")
+ return self._update("/users/%s/password" % base.getid(user),
+ params, "user")
def update_tenant(self, user, tenant):
"""
Update default tenant.
"""
params = {"user": {"id": base.getid(user),
- "tenantId": base.getid(tenant) }}
+ "tenantId": base.getid(tenant)}}
# FIXME(ja): seems like a bad url - default tenant is an attribute
# not a subresource!???
- return self._update("/users/%s/tenant" % base.getid(user), params, "user")
+ return self._update("/users/%s/tenant" % base.getid(user),
+ params, "user")
def create(self, name, password, email, tenant_id=None, enabled=True):
"""
Create a user.
"""
- # FIXME(ja): email should be optional but keystone currently requires it
+ # FIXME(ja): email should be optional, keystone currently requires it
params = {"user": {"name": name,
"password": password,
"tenantId": tenant_id,