Use _single_path in managers' get methods

This commit is contained in:
Jiri Stransky 2013-07-12 18:35:34 +02:00
parent 0c9450b26f
commit 82b6d4ab0d
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class RackManager(base.Manager):
return '/v1/racks/%s' % id if id else '/v1/racks'
def get(self, rack_id):
return self._get(self._path(rack_id))
return self._get(self._single_path(rack_id))
def list(self):
return self._list(self._path())

View File

@ -29,7 +29,7 @@ class ResourceClassManager(base.Manager):
return self._list(self._path())
def get(self, id):
return self._get(self._path(id))
return self._get(self._single_path(id))
def create(self, **kwargs):
return self._create(self._path(), kwargs)