From e4dd4f78cdf20785fdbd4f8087cadce2527dcd92 Mon Sep 17 00:00:00 2001 From: Oleg Bondarev Date: Mon, 4 Mar 2013 18:17:17 +0400 Subject: [PATCH] Include health monitors expected codes upper bound into HAProxy config fixes bug 1144424 Change-Id: I017b8fbb8bcf29af158b87c9718e92ae5824794e --- .../plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py b/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py index 6f22a4d4ea..7e1e267c30 100644 --- a/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py +++ b/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py @@ -222,7 +222,7 @@ def _expand_expected_codes(codes): continue elif '-' in code: low, hi = code.split('-')[:2] - retval.update(str(i) for i in xrange(int(low), int(hi))) + retval.update(str(i) for i in xrange(int(low), int(hi) + 1)) else: retval.add(code) return retval