From: Nitesh Konkar Date: Fri, 26 Feb 2016 11:38:23 +0000 (+0100) Subject: virsh: reject migration with both --live and --offline X-Git-Tag: v1.3.2-rc2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=265275707002cfe7d5247ff2dfb33a6be0a6cc8c;p=thirdparty%2Flibvirt.git virsh: reject migration with both --live and --offline Signed-off-by: Nitesh Konkar Signed-off-by: Ján Tomko --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index bfcc0b38f6..979f115e84 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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;