]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: allow empty string arguments
authorEric Blake <eblake@redhat.com>
Mon, 14 Mar 2011 16:44:37 +0000 (10:44 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 15 Mar 2011 20:33:54 +0000 (14:33 -0600)
commit6eaa4ee41b69978c7e18ce896f537b0afc552446
treee7d2d76bb05923f2b415ad5ec20bc2b9fad7a37a
parentce81bc5ce829bb673d9a7a316e12612146e635e7
virsh: allow empty string arguments

"virsh connect ''" should try to connect to the default connection,
but the previous patch made it issue a warning about an invalid URI.

* tools/virsh.c (VSH_OFLAG_EMPTY_OK): New option flag.
(vshCommandOptString): Per the declaration, value is required to
be non-NULL.  Honor new flag.
(opts_connect): Allow empty string connection.
tools/virsh.c