Skip to content

Commit fb7b416

Browse files
committed
connected_socket(): fix validation check for HAPEE >= 2.1
The command `socket info` returns metadata about the socket connection to a HAProxy process. Since the latest release of HAProxy Enterprise Edition (2.1), the `Name` entry is no longer "HAProxy" but "hapee-lb". This broke our validation check, causing connected_socket() to always return False.
1 parent a49d8b5 commit fb7b416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haproxyadmin/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def connected_socket(path):
190190
unix_socket.close()
191191

192192
try:
193-
return hap_info['Name'] == 'HAProxy'
193+
return hap_info['Name'] in ['HAProxy', 'hapee-lb']
194194
except KeyError:
195195
return False
196196

0 commit comments

Comments
 (0)