]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: don't lie about reconnection in vshReconnect
authorJán Tomko <jtomko@redhat.com>
Thu, 13 Dec 2012 13:08:00 +0000 (14:08 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 13 Dec 2012 15:39:38 +0000 (16:39 +0100)
commitd94b501b7bffd8a2e30ecc2928b679251e8ef80e
tree6117a4eeb895957d196021a05c64aec568e0f822
parent64f0e145c1b930cd294651a212da0fed60299523
virsh: don't lie about reconnection in vshReconnect

Since we (ab)use vshReconnect for the default URI connection, if it
fails it might print 'Failed to reconnect to the hypervisor' even if we
were never connected before.

This changes it to only mention reconnection on the first try after
getting disconnected.
tools/virsh.c