Fix health monitor exception

expected_codes validation raised the wrong error

Change-Id: Iebe5331e549d5313a0b71907a0f628e79666eab8
This commit is contained in:
Adit Sarfaty 2019-03-05 15:05:00 +02:00
parent 24e80ba44c
commit f941ca741a
1 changed files with 1 additions and 1 deletions

View File

@ -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