virsh domjobinfo: Do not return 1 if job is NONE

https://bugzilla.redhat.com/show_bug.cgi?id=1006864

Commit 38ab1225 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 commit f084caae7c)
This commit is contained in:
Jiri Denemark 2013-09-11 15:49:48 +02:00 committed by Ján Tomko
parent 6a84cd9145
commit c3663c47c1

View File

@ -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;
}