Merge pull request #238 from FirmlyReality/master
add self to write_clusterinfo
This commit is contained in:
commit
787e95ef5f
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue