Browse Source

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 47398edd3c)
changes/06/789806/1
Dmitry Tantsur 3 months ago
parent
commit
e88436688d
  1. 2
      ironic/common/exception.py

2
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.")

Loading…
Cancel
Save