Include health monitors expected codes upper bound into HAProxy config
fixes bug 1144424 Change-Id: I017b8fbb8bcf29af158b87c9718e92ae5824794e
This commit is contained in:
parent
4849715add
commit
e4dd4f78cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user