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 2016-02-26 12:38:23 +01:00 committed by Ján Tomko
parent 21b316f4d3
commit 2652757070

View File

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