diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-05-04 17:32:54 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-05-05 12:37:25 +0000 |
commit | e88436688de3b05fcee9fd7cf4fe527ec4ecb678 (patch) | |
tree | 3f253c44bb532f0fd8dc6d0f2df2a9ebcecc0485 | |
parent | c9425f9950fc850d74ec8050ddbc94f60363cf93 (diff) | |
download | ironic-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.py | 2 |
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.") |