Merge "Fix the exception content"

This commit is contained in:
Zuul
2021-06-09 08:50:21 +00:00
committed by Gerrit Code Review

View File

@@ -131,7 +131,8 @@ class ExtARQ(base.CyborgObject, object_base.VersionedObjectDictCompat,
ea = ExtARQ.get(context, self.arq.uuid, lock=True)
if not ea:
raise exception.ResourceNotFound(
"Can not find ExtARQ(%s)" % self.arq.uuid)
resources='ExtARQ',
msg="Can not find ExtARQ(%s)" % self.arq.uuid)
current = ea.arq.state
if state != current:
msg = ("Failed to change ARQ state from %s to %s, the current "