master: Fixed private ip reference
This commit is contained in:
parent
d0ff839ff4
commit
d19a121005
@ -401,7 +401,7 @@ def workerIP_PRIV(worker):
|
|||||||
ip = None
|
ip = None
|
||||||
for line in workers_file.readlines():
|
for line in workers_file.readlines():
|
||||||
if worker == line.split(':')[0]:
|
if worker == line.split(':')[0]:
|
||||||
ip = line.split(':')[2].strip('\n')
|
ip = line.split(':')[1].strip('\n')
|
||||||
break
|
break
|
||||||
|
|
||||||
workers_file.close()
|
workers_file.close()
|
||||||
@ -419,7 +419,7 @@ def workerIP(worker):
|
|||||||
ip = None
|
ip = None
|
||||||
for line in workers_file.readlines():
|
for line in workers_file.readlines():
|
||||||
if worker == line.split(':')[0]:
|
if worker == line.split(':')[0]:
|
||||||
ip = line.split(':')[1].strip('\n')
|
ip = line.split(':')[2].strip('\n')
|
||||||
break
|
break
|
||||||
|
|
||||||
workers_file.close()
|
workers_file.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user