[libvirt] [PATCH] virsh: allow empty string arguments

Jiri Denemark jdenemar at redhat.com
Tue Mar 15 20:13:30 UTC 2011


On Mon, Mar 14, 2011 at 10:46:07 -0600, Eric Blake wrote:
> "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 |   22 +++++++++++++---------
>  1 files changed, 13 insertions(+), 9 deletions(-)

ACK

Jirka




More information about the libvir-list mailing list