]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Include health monitors expected codes upper bound into HAProxy config
authorOleg Bondarev <obondarev@mirantis.com>
Mon, 4 Mar 2013 14:17:17 +0000 (18:17 +0400)
committerOleg Bondarev <obondarev@mirantis.com>
Mon, 4 Mar 2013 14:17:17 +0000 (18:17 +0400)
fixes bug 1144424

Change-Id: I017b8fbb8bcf29af158b87c9718e92ae5824794e

quantum/plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py

index 6f22a4d4eab33376db0514b68cf18448efd4e42b..7e1e267c309c0203b956dc6bac8383d06ed4dc69 100644 (file)
@@ -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