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:
|
else:
|
||||||
for l in output:
|
for l in output:
|
||||||
if "msg" in l or "FAILED" in l:
|
if "msg" in l or "FAILED" in l:
|
||||||
l = l.split(':')[1]
|
try:
|
||||||
l = l.split('"')[1]
|
l = l.split(':')[1]
|
||||||
print(l+"<br>")
|
l = l.split('"')[1]
|
||||||
break
|
print(l+"<br>")
|
||||||
|
break
|
||||||
|
except:
|
||||||
|
print(output)
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
print('success: HAProxy was installed<br>')
|
print('success: HAProxy was installed<br>')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue