add self to write_clusterinfo

This commit is contained in:
zhuyj17 2017-05-15 23:58:35 +08:00
parent 9eced464fd
commit 8b992483cb
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':