From c13641f501fe98b6f8d66ce315b59496cc85b15a Mon Sep 17 00:00:00 2001 From: Tanguy Falconnet Date: Tue, 6 Apr 2021 17:15:37 +0200 Subject: [PATCH] Update haproxy.py --- src/client/haproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/haproxy.py b/src/client/haproxy.py index 8af4ffb..738a3dd 100644 --- a/src/client/haproxy.py +++ b/src/client/haproxy.py @@ -18,6 +18,7 @@ def __init__(self): self.optAllServersInFallback = Configuration().get("CLIENT_ALL_SERVERS_IN_FALLBACK_BACKEND") self.socketPath = Configuration().get("CLIENT_HAPROXY_SOCKET_PATH") self.backendName = Configuration().get("CLIENT_HAPROXY_BACKEND_NAME") + self.backendServerPort = str(Configuration().get("CLIENT_HAPROXY_BACKEND_SERVER_PORT")) self.fallbackBackendName = Configuration().get("CLIENT_HAPROXY_FALLBACK_BACKEND_NAME") self.backendBaseName = Configuration().get("CLIENT_HAPROXY_BACKEND_BASE_NAME") self.fallbackBackendBaseName = Configuration().get("CLIENT_HAPROXY_FALLBACK_BACKEND_BASE_NAME") @@ -101,7 +102,7 @@ def __addServerInBackend(self, server, bckndName, bckndbsName): bckndName, bckndbsName + str(server.backendServerID), server.IPAddress, - str(Configuration().get("CLIENT_HAPROXY_BACKEND_SERVER_PORT"),) + self.backendServerPort ) ) commands.append(