summaryrefslogtreecommitdiff
path: root/ironic/common/exception.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john.l.villalovos@intel.com>2016-09-16 14:31:57 -0700
committerJohn L. Villalovos <john.l.villalovos@intel.com>2016-09-16 14:33:05 -0700
commit11fcf6b710857f01f6b2a7b3fbed28caabba2594 (patch)
treed1e31846fd9b58133f00454b1c0539b7bede0f34 /ironic/common/exception.py
parent77c7a710fc0eb1f419db650e3aa958c31b3bd74f (diff)
downloadironic-11fcf6b710857f01f6b2a7b3fbed28caabba2594.tar.gz
Remove NotificationEventTypeError as not needed
The exception NotificationEventTypeError was used when an invalid status was used. But it is not possible to assign an invalid status without causing a ValueError. Add a unit test to show that changing status to an invalid value does raise a ValueError. Remove check for valid status value. Change-Id: I58fb50f963ca4a8e8d0185b9165c9bcda3bb7a25
Diffstat (limited to 'ironic/common/exception.py')
-rw-r--r--ironic/common/exception.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/ironic/common/exception.py b/ironic/common/exception.py
index ce3654de8..4352ee8bc 100644
--- a/ironic/common/exception.py
+++ b/ironic/common/exception.py
@@ -611,11 +611,6 @@ class IncompleteLookup(Invalid):
"is required")
-class NotificationEventTypeError(IronicException):
- _msg_fmt = _('Expected "status" to be one of "start", "end", '
- '"error", or "success", but got "%(status)s"')
-
-
class NotificationSchemaObjectError(IronicException):
_msg_fmt = _("Expected object %(obj)s when populating notification payload"
" but got object %(source)s")