Resolving cluster wrapper issue
Closes bug: #1445175 Change-Id: Ic7e9d1b3387a3853f1a3d54f672e7d6095be129f
This commit is contained in:
parent
96f5cc5e4d
commit
3779999cef
|
@ -33,7 +33,7 @@ class ClusterController(controller.Controller):
|
||||||
}
|
}
|
||||||
url = self.build_url("/clusters")
|
url = self.build_url("/clusters")
|
||||||
|
|
||||||
return Cluster(self._post(url, json=data)['cluster'])
|
return Cluster(self._post(url, json=data))
|
||||||
|
|
||||||
def list(self, marker=None, limit=None, params=None):
|
def list(self, marker=None, limit=None, params=None):
|
||||||
"""List Clusters"""
|
"""List Clusters"""
|
||||||
|
@ -46,7 +46,7 @@ class ClusterController(controller.Controller):
|
||||||
"""Show Cluster"""
|
"""Show Cluster"""
|
||||||
url = self.build_url("/clusters/%s" % cluster_id)
|
url = self.build_url("/clusters/%s" % cluster_id)
|
||||||
|
|
||||||
return Cluster(self._get(url)['cluster'])
|
return Cluster(self._get(url))
|
||||||
|
|
||||||
def update(self, cluster_id, values):
|
def update(self, cluster_id, values):
|
||||||
data = {
|
data = {
|
||||||
|
|
Loading…
Reference in New Issue