mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
lxc: Move error messages onto a single line
Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
2fa5c92b09
commit
8e48b9a313
@ -2182,8 +2182,7 @@ int lxcContainerStart(virDomainDef *def,
|
||||
} else {
|
||||
if (lxcNeedNetworkNamespace(def)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Config asks for inherit net namespace "
|
||||
"as well as private network interfaces"));
|
||||
_("Config asks for inherit net namespace as well as private network interfaces"));
|
||||
goto cleanup;
|
||||
}
|
||||
VIR_DEBUG("Inheriting a net namespace");
|
||||
|
@ -654,8 +654,7 @@ static int lxcDomainSetMemoryFlags(virDomainPtr dom, unsigned long newmem,
|
||||
if (flags & VIR_DOMAIN_MEM_MAXIMUM) {
|
||||
if (def) {
|
||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||
_("Cannot resize the max memory "
|
||||
"on an active domain"));
|
||||
_("Cannot resize the max memory on an active domain"));
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
|
@ -1126,8 +1126,7 @@ lxcParseConfigString(const char *config,
|
||||
if (virConfGetValue(properties, "lxc.mount.fstab") ||
|
||||
virConfGetValue(properties, "lxc.mount")) {
|
||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||
_("lxc.mount.fstab or lxc.mount found, use "
|
||||
"lxc.mount.entry lines instead"));
|
||||
_("lxc.mount.fstab or lxc.mount found, use lxc.mount.entry lines instead"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -452,8 +452,7 @@ static int virLXCProcessSetupNamespaceNet(int ns_type, const char *name)
|
||||
int fd;
|
||||
if (ns_type != VIR_LXC_DOMAIN_NAMESPACE_SHARENET) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("'netns' namespace source can only be "
|
||||
"used with sharenet"));
|
||||
_("'netns' namespace source can only be used with sharenet"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user