mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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:
parent
21b316f4d3
commit
2652757070
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user