Fix health monitor exception
expected_codes validation raised the wrong error Change-Id: Iebe5331e549d5313a0b71907a0f628e79666eab8
This commit is contained in:
parent
24e80ba44c
commit
f941ca741a
@ -269,7 +269,7 @@ class HealthMonitorController(base.BaseController):
|
||||
'type {}'.format(db_hm.type))
|
||||
if health_monitor.expected_codes != wtypes.Unset:
|
||||
raise exceptions.InvalidOption(
|
||||
value=consts.URL_PATH, option='health monitors of '
|
||||
value=consts.EXPECTED_CODES, option='health monitors of '
|
||||
'type {}'.format(db_hm.type))
|
||||
else:
|
||||
# For HTTP health monitor these cannot be null/None
|
||||
|
Loading…
x
Reference in New Issue
Block a user