main: Fixed error from extra lines in worker file
This commit is contained in:
parent
136066df5c
commit
e1aa30058e
@ -65,6 +65,9 @@ def new_site():
|
|||||||
# Get a worker that has available slots
|
# Get a worker that has available slots
|
||||||
worker = None
|
worker = None
|
||||||
for line in workers:
|
for line in workers:
|
||||||
|
if not line.__contains__(':'):
|
||||||
|
continue
|
||||||
|
|
||||||
ip = line.split(':')[1].strip('\n')
|
ip = line.split(':')[1].strip('\n')
|
||||||
resp=requests.get("http://"+ip + ":5000/status",timeout=2)
|
resp=requests.get("http://"+ip + ":5000/status",timeout=2)
|
||||||
if (resp.status_code == 200):
|
if (resp.status_code == 200):
|
||||||
|
Loading…
Reference in New Issue
Block a user