]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh domjobinfo: Do not return 1 if job is NONE
authorJiri Denemark <jdenemar@redhat.com>
Wed, 11 Sep 2013 13:49:48 +0000 (15:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2013 11:26:55 +0000 (13:26 +0200)
commit168f70cfe99d3c276ec60e70d4f30f4f377f1502
tree515cdaaa71e62737f5f6a79586d2ac0dce8a92f0
parentc22cb488ded2eaefd3f579040577eb8be46c5666
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 f084caae7c5db8ae03e7fafce164c73f65681843)
tools/virsh-domain.c