mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
fix(instances): the Secure Boot machine type warning is in the user's language
A new VM with UEFI Secure Boot on a machine type other than q35 is made on q35, and the create page says so. That warning was an English-only string; it is now a translated message, with Turkish and Chinese texts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
9fa898a856
commit
a4bfe77949
6 changed files with 34 additions and 17 deletions
|
|
@ -2589,11 +2589,8 @@ def create_instance(request, compute_id, arch, machine):
|
|||
messages.error(request, str(err))
|
||||
else:
|
||||
if op.params["machine"] != machine:
|
||||
messages.warning(
|
||||
request,
|
||||
"Changing machine type from '%s' to 'q35' "
|
||||
"which is required for UEFI secure boot." % machine,
|
||||
)
|
||||
messages.warning(request, _("The machine type is q35, not %(machine)s: "
|
||||
"UEFI Secure Boot needs it") % {"machine": machine})
|
||||
jobs.remember_job(request, op)
|
||||
return redirect(reverse("instances", args=[compute.id]))
|
||||
except libvirtError as lib_err:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue