[libvirt] [PATCH] virsh: improve doMigrate function docs

Michal Privoznik mprivozn at redhat.com
Wed Jan 11 11:10:24 UTC 2012


On 11.01.2012 09:23, ajia at redhat.com wrote:
> From: Alex Jia <ajia at redhat.com>
> 
> When running virsh migrate with --xml option and actual xml file doesn't
> exist, virsh hasn't output any error information, although return value
> is 1.
> 
> * tools/virsh.c: Raising a appropriate error information when operation fails.
> 
> * How to reproduce?
> % virsh migrate <domain> --live qemu+ssh://<target host>/system --xml non-existent.xml
> % echo $? 
> 
> * Fixed result:
> error: file 'non-existent.xml' doesn't exist
> 
> Signed-off-by: Alex Jia <ajia at redhat.com>
> ---
>  tools/virsh.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)

ACKed & pushed.

Michal




More information about the libvir-list mailing list