diff options
author | Jakub Jelinek <vilouskubajj@gmail.com> | 2023-02-16 10:04:06 +0000 |
---|---|---|
committer | Jakub Jelinek <vilouskubajj@gmail.com> | 2023-02-16 15:39:45 +0000 |
commit | 9d3d16b791387acc23e61513bdebdb631b255e37 (patch) | |
tree | 12e8bedfd3b8c8151f1cbe369935d94e3c51dc10 /ironic/common/exception.py | |
parent | e8888aa9aef0380ef25ebf812d258969c5166d04 (diff) | |
download | ironic-9d3d16b791387acc23e61513bdebdb631b255e37.tar.gz |
Fix Inventory DB
Follow-up to I6b830e5cc30f1fa1f1900e7c45e6f246fa1ec51c
Original changa introduced some errors such as mismatched
arguments for exceptions
Story: 2010275
Task: 46204
Change-Id: I550e048ab22a6cd25502b41d1c579819df369249
Diffstat (limited to 'ironic/common/exception.py')
-rw-r--r-- | ironic/common/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ironic/common/exception.py b/ironic/common/exception.py index 731d31486..a4925faf3 100644 --- a/ironic/common/exception.py +++ b/ironic/common/exception.py @@ -120,6 +120,10 @@ class VolumeTargetBootIndexAlreadyExists(Conflict): "for the same node already exists.") +class NodeInventoryAlreadyExists(Conflict): + _msg_fmt = _("A node inventory with ID %(id)s already exists.") + + class VifAlreadyAttached(Conflict): _msg_fmt = _("Unable to attach VIF because VIF %(vif)s is already " "attached to Ironic %(object_type)s %(object_uuid)s") |