Fix 'action' call on cluster/node objects
The recent migration to keystoneauth1 in SDK has created problems more than just a single problem. This patch fixes the 'action' calls. Change-Id: I8b16a860a5fe4db84c31158a2e673cfaaa2707a6 Closes-Bug: #1520153 Related-Bug: #1519192
This commit is contained in:
@@ -282,8 +282,8 @@ class Cluster(resource.Resource):
|
||||
|
||||
def action(self, session, body):
|
||||
url = utils.urljoin(self.base_path, self.id, 'action')
|
||||
resp = session.put(url, service=self.service, json=body).body
|
||||
return resp
|
||||
resp = session.put(url, endpoint_filter=self.service, json=body)
|
||||
return resp.json()
|
||||
|
||||
def add_nodes(self, session, nodes):
|
||||
body = {
|
||||
@@ -504,8 +504,8 @@ class Node(resource.Resource):
|
||||
|
||||
def action(self, session, body):
|
||||
url = utils.urljoin(self.base_path, self.id, 'action')
|
||||
resp = session.put(url, service=self.service, json=body).body
|
||||
return resp
|
||||
resp = session.put(url, endpoint_filter=self.service, json=body)
|
||||
return resp.json()
|
||||
|
||||
def join(self, session, cluster_id):
|
||||
body = {
|
||||
|
||||
Reference in New Issue
Block a user