mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +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.
This commit is contained in:
parent
47fcb9c7da
commit
c968930b08
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