mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
vmware: 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
b7c3bb0a84
commit
9e47d4a657
@ -355,8 +355,7 @@ vmwareVmxPath(virDomainDef *vmdef, char **vmxPath)
|
|||||||
*/
|
*/
|
||||||
if (vmdef->ndisks < 1) {
|
if (vmdef->ndisks < 1) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("Domain XML doesn't contain any disks, "
|
_("Domain XML doesn't contain any disks, cannot deduce datastore and path for VMX file"));
|
||||||
"cannot deduce datastore and path for VMX file"));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -370,16 +369,14 @@ vmwareVmxPath(virDomainDef *vmdef, char **vmxPath)
|
|||||||
|
|
||||||
if (disk == NULL) {
|
if (disk == NULL) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("Domain XML doesn't contain any file-based harddisks, "
|
_("Domain XML doesn't contain any file-based harddisks, cannot deduce datastore and path for VMX file"));
|
||||||
"cannot deduce datastore and path for VMX file"));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
src = virDomainDiskGetSource(disk);
|
src = virDomainDiskGetSource(disk);
|
||||||
if (!src) {
|
if (!src) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("First file-based harddisk has no source, cannot "
|
_("First file-based harddisk has no source, cannot deduce datastore and path for VMX file"));
|
||||||
"deduce datastore and path for VMX file"));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -509,8 +509,7 @@ vmwareDomainSuspend(virDomainPtr dom)
|
|||||||
|
|
||||||
if (driver->type == VMWARE_DRIVER_PLAYER) {
|
if (driver->type == VMWARE_DRIVER_PLAYER) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("vmplayer does not support libvirt suspend/resume"
|
_("vmplayer does not support libvirt suspend/resume (vmware pause/unpause) operation "));
|
||||||
" (vmware pause/unpause) operation "));
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -549,8 +548,7 @@ vmwareDomainResume(virDomainPtr dom)
|
|||||||
|
|
||||||
if (driver->type == VMWARE_DRIVER_PLAYER) {
|
if (driver->type == VMWARE_DRIVER_PLAYER) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("vmplayer does not support libvirt suspend/resume "
|
_("vmplayer does not support libvirt suspend/resume (vmware pause/unpause) operation "));
|
||||||
"(vmware pause/unpause) operation "));
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user