mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
virsh domjobinfo: Do not return 1 if job is NONE
https://bugzilla.redhat.com/show_bug.cgi?id=1006864 Commit38ab1225
changed the default value of ret from true to false but forgot to set ret = true when job is NONE. Thus, virsh domjobinfo returned 1 when there was no job running for a domain but it used to (and should) return 0 in this case. (cherry picked from commitf084caae7c
)
This commit is contained in:
parent
6a84cd9145
commit
c3663c47c1
@ -4854,6 +4854,7 @@ cmdDomjobinfo(vshControl *ctl, const vshCmd *cmd)
|
||||
case VIR_DOMAIN_JOB_NONE:
|
||||
default:
|
||||
vshPrint(ctl, "%-12s\n", _("None"));
|
||||
ret = true;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user