Commit 5fc3e24a authored by qhoangxuan's avatar qhoangxuan

Refactor docker_id to backend_id

parent d9ac2acc
......@@ -267,7 +267,7 @@ class SwarmClient:
raise ZoeLibException(str(e))
info = {
"docker_id": docker_id,
"backend_id": docker_id,
"ip_address": {}
} # type: Dict[str, Any]
for net in docker_info["NetworkSettings"]["Networks"]:
......@@ -118,7 +118,7 @@ class OldSwarmBackend(zoe_master.backends.base.BaseBackend):
except (ZoeException, ZoeLibException) as e:
raise ZoeStartExecutionFatalException(str(e))
service.set_active(cont_info["docker_id"], cont_info['ip_address'][get_conf().overlay_network_name])
service.set_active(cont_info["backend_id"], cont_info['ip_address'][get_conf().overlay_network_name])
def terminate_service(self, service: Service) -> None:
"""Terminate and delete a container."""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment