summaryrefslogtreecommitdiff
path: root/reddwarfclient/users.py
diff options
context:
space:
mode:
Diffstat (limited to 'reddwarfclient/users.py')
-rw-r--r--reddwarfclient/users.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/reddwarfclient/users.py b/reddwarfclient/users.py
index 7da5ae7..505703c 100644
--- a/reddwarfclient/users.py
+++ b/reddwarfclient/users.py
@@ -86,9 +86,7 @@ class Users(base.ManagerWithFind):
"""
username = quote(user)
url = "/instances/%s/users/%s" % (instance_id, username)
- resp, body = self.api.client.get(url)
- check_for_exceptions(resp, body)
- return self.resource_class(self, body)
+ return self._get(url, "user")
def list_access(self, instance, user):
"""Show all databases the given user has access to. """