virsh: reject migration with both --live and --offline

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Nitesh Konkar authored and Ján Tomko committed 2016-02-26 12:45:20 +01:00
1 parent 21b316f4d3
commit 2652757070
1 file changed
+2
+2
View 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;