Skip to content

Commit fc1cc74

Browse files
committed
VR: fix haproxy check when ssl offloading is configured
1 parent 30d3066 commit fc1cc74

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
@@ -50,7 +50,7 @@ def checkLoadBalance(haproxyData, haCfgSections):
5050
correct = False
5151

5252
bindStr = lbSec["sourceIp"] + ":" + formatPort(lbSec["sourcePortStart"], lbSec["sourcePortEnd"])
53-
if cfgSection["bind"][0] != bindStr:
53+
if not cfgSection["bind"][0].startswith(bindStr):
5454
print("Incorrect bind string found. Expected " + bindStr + " but found " + cfgSection["bind"][0] + ".")
5555
correct = False
5656

0 commit comments

Comments
 (0)