mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
tools: fix output of list with state-shutoff
Due to the default of flags is VIR_CONNECT_LIST_DOMAINS_ACTIVE, It doesn't show the domains that have been shutdown when we use 'virsh list' with only --state-shutoff. Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
This commit is contained in:
parent
90f3c0d717
commit
8dd47ead18
@ -1873,7 +1873,8 @@ cmdList(vshControl *ctl, const vshCmd *cmd)
|
||||
unsigned int flags = VIR_CONNECT_LIST_DOMAINS_ACTIVE;
|
||||
|
||||
/* construct filter flags */
|
||||
if (vshCommandOptBool(cmd, "inactive"))
|
||||
if (vshCommandOptBool(cmd, "inactive") ||
|
||||
vshCommandOptBool(cmd, "state-shutoff"))
|
||||
flags = VIR_CONNECT_LIST_DOMAINS_INACTIVE;
|
||||
|
||||
if (vshCommandOptBool(cmd, "all"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user