mirror of https://github.com/Aidaho12/haproxy-wi
v3.7.3.3
parent
c6c6989d3d
commit
d3ad7171a4
12
app/funct.py
12
app/funct.py
|
@ -372,10 +372,14 @@ def install_haproxy(serv, **kwargs):
|
|||
else:
|
||||
for l in output:
|
||||
if "msg" in l or "FAILED" in l:
|
||||
l = l.split(':')[1]
|
||||
l = l.split('"')[1]
|
||||
print(l+"<br>")
|
||||
break
|
||||
try:
|
||||
l = l.split(':')[1]
|
||||
l = l.split('"')[1]
|
||||
print(l+"<br>")
|
||||
break
|
||||
except:
|
||||
print(output)
|
||||
break
|
||||
else:
|
||||
print('success: HAProxy was installed<br>')
|
||||
|
||||
|
|
Loading…
Reference in New Issue