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