]> xenbits.xensource.com Git - libvirt.git/commit
virsh migrate: Fix positional parameters
authorJiri Denemark <jdenemar@redhat.com>
Mon, 20 Jun 2016 07:26:48 +0000 (09:26 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 21 Jun 2016 08:11:03 +0000 (10:11 +0200)
commitc61360e15b5ce4f37fbd600fa8f26085a4f85ee9
tree5351761ab246882ffe2a26608abf7f30c9f34d89
parenta1e1679c8aaa8256332954c20ec24dd938ef8a58
virsh migrate: Fix positional parameters

Thanks to our smart option parser which automatically assigns positional
parameters the following (previously working) command fails:

    virsh migrate test qemu+ssh://1.2.3.4/system tcp://1.2.3.4/
    error: invalid argument: Unsupported compression method
    'tcp://1.2.3.4/'

We need to make sure new options are added at the end of the list rather
than where they logically belong.

Reported by Brian Rak.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/virsh-domain.c