Skip to content

Commit

Permalink
[CE-77] Fix cluster stop/start/restart operation
Browse files Browse the repository at this point in the history
Fix operation fail for cluster

Change-Id: Ib95b33ac0c074580664831bcdc72528097cc4e0a
Signed-off-by: Haitao Yue <hightall@me.com>
  • Loading branch information
hightall committed Jun 30, 2017
1 parent 4ef1854 commit 3a5c642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/agent/docker/docker_swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def compose_start(name, worker_api, mapped_ports=SERVICE_PORTS,
_compose_set_env(name, worker_api, mapped_ports, network_type,
log_level, log_type, log_server, config)

if network_type == NETWORK_TYPES[1]:
if network_type == NETWORK_TYPE_FABRIC_PRE_V1:
cluster_version = 'fabric-0.6'
else:
cluster_version = 'fabric-1.0'
Expand Down Expand Up @@ -491,7 +491,7 @@ def compose_restart(name, worker_api, mapped_ports=SERVICE_PORTS,
_compose_set_env(name, worker_api, mapped_ports, network_type,
log_level, log_type, log_server, config)

if network_type == NETWORK_TYPES[1]:
if network_type == NETWORK_TYPE_FABRIC_PRE_V1:
cluster_version = 'fabric-0.6'
else:
cluster_version = 'fabric-1.0'
Expand Down Expand Up @@ -536,7 +536,7 @@ def compose_stop(name, worker_api, mapped_ports=SERVICE_PORTS,
_compose_set_env(name, worker_api, mapped_ports, network_type,
log_level, log_type, log_server, config)

if network_type == NETWORK_TYPES[1]:
if network_type == NETWORK_TYPE_FABRIC_PRE_V1:
cluster_version = 'fabric-0.6'
else:
cluster_version = 'fabric-1.0'
Expand Down Expand Up @@ -577,7 +577,7 @@ def compose_down(name, worker_api, mapped_ports=SERVICE_PORTS,
_compose_set_env(name, worker_api, mapped_ports, network_type,
log_level, log_type, log_server, config)

if network_type == NETWORK_TYPES[1]:
if network_type == NETWORK_TYPE_FABRIC_PRE_V1:
cluster_version = 'fabric-0.6'
else:
cluster_version = 'fabric-1.0'
Expand Down
2 changes: 1 addition & 1 deletion src/themes/react/static/js/services/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function deleteCluster(params) {
export async function operation(params) {
return request({
url: config.urls.cluster.operation,
method: 'post',
method: 'get',
data: params
})
}

0 comments on commit 3a5c642

Please sign in to comment.