mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
21b316f4d3
commit
2652757070
1 file changed
+2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user