From e88436688de3b05fcee9fd7cf4fe527ec4ecb678 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 4 May 2021 17:32:54 +0200 Subject: [PATCH] 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) --- ironic/common/exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/common/exception.py b/ironic/common/exception.py index c2e5030e87..0350f2ede2 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.")