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 {
|
} else {
|
||||||
if (lxcNeedNetworkNamespace(def)) {
|
if (lxcNeedNetworkNamespace(def)) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("Config asks for inherit net namespace "
|
_("Config asks for inherit net namespace as well as private network interfaces"));
|
||||||
"as well as private network interfaces"));
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
VIR_DEBUG("Inheriting a net namespace");
|
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 (flags & VIR_DOMAIN_MEM_MAXIMUM) {
|
||||||
if (def) {
|
if (def) {
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||||
_("Cannot resize the max memory "
|
_("Cannot resize the max memory on an active domain"));
|
||||||
"on an active domain"));
|
|
||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1126,8 +1126,7 @@ lxcParseConfigString(const char *config,
|
|||||||
if (virConfGetValue(properties, "lxc.mount.fstab") ||
|
if (virConfGetValue(properties, "lxc.mount.fstab") ||
|
||||||
virConfGetValue(properties, "lxc.mount")) {
|
virConfGetValue(properties, "lxc.mount")) {
|
||||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||||
_("lxc.mount.fstab or lxc.mount found, use "
|
_("lxc.mount.fstab or lxc.mount found, use lxc.mount.entry lines instead"));
|
||||||
"lxc.mount.entry lines instead"));
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -452,8 +452,7 @@ static int virLXCProcessSetupNamespaceNet(int ns_type, const char *name)
|
|||||||
int fd;
|
int fd;
|
||||||
if (ns_type != VIR_LXC_DOMAIN_NAMESPACE_SHARENET) {
|
if (ns_type != VIR_LXC_DOMAIN_NAMESPACE_SHARENET) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("'netns' namespace source can only be "
|
_("'netns' namespace source can only be used with sharenet"));
|
||||||
"used with sharenet"));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user