]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: reject migration with both --live and --offline
authorNitesh Konkar <niteshkonkar.libvirt@gmail.com>
Fri, 26 Feb 2016 11:38:23 +0000 (12:38 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 26 Feb 2016 11:45:20 +0000 (12:45 +0100)
Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c

index bfcc0b38f6ecf9017e8dd76217625e16a6e391d8..979f115e84ec91a19485b3529f555340a619756d 100644 (file)
@@ -9853,6 +9853,8 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd)
     bool live_flag = false;
     virshCtrlData data = { .dconn = NULL };
 
+    VSH_EXCLUSIVE_OPTIONS("live", "offline");
+
     if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
         return false;