Browse Source

Inherit InvalidImageRef from InvalidParameterValue

InvalidImageRef is a kind of InvalidParameterValue and can happen during
validation, causing a traceback now.

Change-Id: I5f10fe7240e74d337f991bbd1a5220cc4e713de7
changes/93/789593/1
Dmitry Tantsur 5 months ago
parent
commit
47398edd3c
  1. 2
      ironic/common/exception.py

2
ironic/common/exception.py

@ -386,7 +386,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