From f941ca741a1e04155d2b639538fc5f445ca39c55 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Tue, 5 Mar 2019 15:05:00 +0200 Subject: [PATCH] Fix health monitor exception expected_codes validation raised the wrong error Change-Id: Iebe5331e549d5313a0b71907a0f628e79666eab8 --- octavia/api/v2/controllers/health_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octavia/api/v2/controllers/health_monitor.py b/octavia/api/v2/controllers/health_monitor.py index 2f50b59a32..22d077bd88 100644 --- a/octavia/api/v2/controllers/health_monitor.py +++ b/octavia/api/v2/controllers/health_monitor.py @@ -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