summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2021-05-04 17:32:54 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2021-05-05 12:37:25 +0000
commite88436688de3b05fcee9fd7cf4fe527ec4ecb678 (patch)
tree3f253c44bb532f0fd8dc6d0f2df2a9ebcecc0485
parentc9425f9950fc850d74ec8050ddbc94f60363cf93 (diff)
downloadironic-e88436688de3b05fcee9fd7cf4fe527ec4ecb678.tar.gz
Inherit InvalidImageRef from InvalidParameterValue
InvalidImageRef is a kind of InvalidParameterValue and can happen during validation, causing a traceback now. Change-Id: I5f10fe7240e74d337f991bbd1a5220cc4e713de7 (cherry picked from commit 47398edd3c6fe3209ffc827a84073c70a81a9b13)
-rw-r--r--ironic/common/exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/common/exception.py b/ironic/common/exception.py
index c2e5030e8..0350f2ede 100644
--- a/ironic/common/exception.py
+++ b/ironic/common/exception.py
@@ -383,7 +383,7 @@ class ImageNotAuthorized(NotAuthorized):
_msg_fmt = _("Not authorized for image %(image_id)s.")
-class InvalidImageRef(Invalid):
+class InvalidImageRef(InvalidParameterValue):
_msg_fmt = _("Invalid image href %(image_href)s.")