Skip to content

Commit

Permalink
[CE-217] Fix chain operation in admin dashboard
Browse files Browse the repository at this point in the history
Can restart/stop/start chains in admin dashboard

Change-Id: Ieef1f4262145919e746d023a366f2c649e171d88
Signed-off-by: Haitao Yue <hightall@me.com>
  • Loading branch information
hightall committed Jan 10, 2018
1 parent 42cb9d4 commit f5f8ce8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/modules/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ def start(self, cluster_id):
else:
return False

result = self.cluster_agents[h.get('type')].start(
name=cluster_id, worker_api=h.get('worker_api'),
result = self.cluster_agents[h.type].start(
name=cluster_id, worker_api=h.worker_api,
mapped_ports=c.get('mapped_ports', PEER_SERVICE_PORTS),
log_type=h.get('log_type'),
log_level=h.get('log_level'),
log_type=h.log_type,
log_level=h.log_level,
log_server='',
config=config,
)
Expand Down Expand Up @@ -528,11 +528,11 @@ def restart(self, cluster_id):
else:
return False

result = self.cluster_agents[h.get('type')].restart(
name=cluster_id, worker_api=h.get('worker_api'),
result = self.cluster_agents[h.type].restart(
name=cluster_id, worker_api=h.worker_api,
mapped_ports=c.get('mapped_ports', PEER_SERVICE_PORTS),
log_type=h.get('log_type'),
log_level=h.get('log_level'),
log_type=h.log_type,
log_level=h.log_level,
log_server='',
config=config,
)
Expand Down Expand Up @@ -570,11 +570,11 @@ def stop(self, cluster_id):
size=c.get('size'))
else:
return False
result = self.cluster_agents[h.get('type')].stop(
name=cluster_id, worker_api=h.get('worker_api'),
result = self.cluster_agents[h.type].stop(
name=cluster_id, worker_api=h.worker_api,
mapped_ports=c.get('mapped_ports', PEER_SERVICE_PORTS),
log_type=h.get('log_type'),
log_level=h.get('log_level'),
log_type=h.log_type,
log_level=h.log_level,
log_server='',
config=config,
)
Expand Down

0 comments on commit f5f8ce8

Please sign in to comment.