Skip to content

Commit ab3a6a7

Browse files
committed
fix haproxy check
1 parent 7141c7e commit ab3a6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/root/health_checks/haproxy_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def checkLoadBalance(haproxyData, haCfgSections):
196196
bindStr += " ssl crt " + SSL_CERTS_DIR + lbSec["sslcert"]
197197
if "http2" in lbSec and lbSec["http2"].lower() == 'true':
198198
bindStr += " alpn h2,http/1.1"
199-
if cfgSection["bind"][0] != bindStr:
199+
if not cfgSection["bind"][0].startswith(bindStr):
200200
print "Incorrect bind string found. Expected " + bindStr + " but found " + cfgSection["bind"][0] + "."
201201
correct = False
202202

0 commit comments

Comments
 (0)