]> 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)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 12 Sep 2013 09:31:49 +0000 (11:31 +0200)
commitf084caae7c5db8ae03e7fafce164c73f65681843
tree7ab09e90522c189bbef0aa0768dd9a4e0e295518
parenta41e95db504f638ffe63e75d997344a2692bdb16
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.
tools/virsh-domain.c