Include health monitors expected codes upper bound into HAProxy config

fixes bug 1144424

Change-Id: I017b8fbb8bcf29af158b87c9718e92ae5824794e
This commit is contained in:
Oleg Bondarev 2013-03-04 18:17:17 +04:00
parent 4849715add
commit e4dd4f78cd

View 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