mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-12 21:05:48 +00:00
virsh: Make 'exit' action same as 'quit'
For now 'virsh quit' action like this: -------------------------------- [root@localhost /]# virsh quit [root@localhost /]# -------------------------------- And 'virsh exit' action: -------------------------------- [root@localhost /]# virsh exit [root@localhost /]# -------------------------------- There is a small difference('/n') between them. According to manual said: quit, exit quit this interactive terminal And in the code they all called cmdQuit func, They should get same actions. Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
This commit is contained in:
parent
736e017e36
commit
cc7e150359
@ -1852,7 +1852,8 @@ vshCommandRun(vshControl *ctl, const vshCmd *cmd)
|
|||||||
if (!ret && disconnected != 0)
|
if (!ret && disconnected != 0)
|
||||||
vshReconnect(ctl);
|
vshReconnect(ctl);
|
||||||
|
|
||||||
if (STREQ(cmd->def->name, "quit")) /* hack ... */
|
if (STREQ(cmd->def->name, "quit") ||
|
||||||
|
STREQ(cmd->def->name, "exit")) /* hack ... */
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (enable_timing) {
|
if (enable_timing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user