From 984819686ec0d6f9beea01da3daa91ecdd4e5fb0 Mon Sep 17 00:00:00 2001 From: zhongyehong Date: Sun, 22 Apr 2018 14:45:04 +0800 Subject: [PATCH] fix a bug caused by merge --- src/vclustermgr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vclustermgr.py b/src/vclustermgr.py index 0bfd689..6bedd17 100755 --- a/src/vclustermgr.py +++ b/src/vclustermgr.py @@ -450,7 +450,7 @@ class VclusterMgr(object): if vcluster.status =='running': return [False, "cluster is still running, you need to stop it and then delete"] ips = [] - for container in info['containers']: + for container in vcluster.containers: worker = self.nodemgr.ip_to_rpc(container.host) if worker is None: return [False, "The worker can't be found or has been stopped."] @@ -480,8 +480,8 @@ class VclusterMgr(object): if not status: return [False, "cluster not found"] new_containers = [] - for container in info['containers']: - if container['containername'] == containername: + for container in vcluster.containers: + if container.containername == containername: worker = self.nodemgr.ip_to_rpc(container.host) if worker is None: return [False, "The worker can't be found or has been stopped."]