1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

vz: allow only en-us keymap for VNC

In virtuozzo we support only en-us keymap for VMs and containers.
If keymap is specified than check that it's en-us, otherwise
show error message.
This commit is contained in:
Mikhail Feoktistov 2015-11-18 18:19:07 +03:00 committed by Dmitry Guryanov
parent 2205d58b32
commit 1158184f05

View File

@ -2220,10 +2220,11 @@ static int prlsdkCheckGraphicsUnsupportedParams(virDomainDefPtr def)
return -1;
}
if (gr->data.vnc.keymap != 0) {
if (gr->data.vnc.keymap != 0 &&
STRNEQ(gr->data.vnc.keymap, "en-us")) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("vz driver doesn't support "
"keymap setting for VNC graphics."));
_("vz driver supports only "
"\"en-us\" keymap for VNC graphics."));
return -1;
}