1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(jobs): a busy message names what the job in the way works on

A verification of a chain's base refused a verification of its incremental
with "Verify backup is running on this resource": which backup held it was
not said. The job's resource label now follows its name for who may see
the job, as on the Jobs page; not in an audit row or a bulk migration's
error, which others read.
This commit is contained in:
catborise 2026-11-19 21:18:03 +03:00
parent 7b23c75bf5
commit 57e90e0d27
6 changed files with 24 additions and 5 deletions

View file

@ -62,7 +62,7 @@ def reason(exc, user):
from vrtManager.util import OperationError
if isinstance(exc, claims.Busy):
return busy_message(exc, user)
return busy_message(exc, user, named=False) # a VM's owner may read its row
if isinstance(exc, OperationError):
return exc.args[0] # English: str() is the reader's language
if isinstance(exc, libvirt.libvirtError):