Merge pull request #238 from FirmlyReality/master

add self to write_clusterinfo
This commit is contained in:
Yujian Zhu 2017-05-15 23:59:20 +08:00 committed by GitHub
commit 787e95ef5f
1 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ class VclusterMgr(object):
# set proxy
if not "proxy_server_ip" in info.keys():
info['proxy_server_ip'] = self.addr
write_clusterinfo(info,clustername,username)
self.write_clusterinfo(info,clustername,username)
try:
target = 'http://'+info['containers'][0]['ip'].split('/')[0]+":10000"
if self.distributedgw == 'True':
@ -413,7 +413,7 @@ class VclusterMgr(object):
# recover proxy of cluster
if not "proxy_server_ip" in info.keys():
info['proxy_server_ip'] = self.addr
write_clusterinfo(info,clustername,username)
self.write_clusterinfo(info,clustername,username)
try:
target = 'http://'+info['containers'][0]['ip'].split('/')[0]+":10000"
if self.distributedgw == 'True':