mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
virshDomainNameCompleter: Prune accepted flags
Only a small subset of VIR_CONNECT_LIST_DOMAINS_* flags are actually used for this completer. Remove the unused ones. Note that this is unrelated to other commands using VIR_CONNECT_LIST_DOMAINS_* (i.e. cmdList) as this commit targets the completer only and nothing else. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
6c44013b17
commit
3b225256cd
@ -45,18 +45,11 @@ virshDomainNameCompleter(vshControl *ctl,
|
||||
|
||||
virCheckFlags(VIR_CONNECT_LIST_DOMAINS_ACTIVE |
|
||||
VIR_CONNECT_LIST_DOMAINS_INACTIVE |
|
||||
VIR_CONNECT_LIST_DOMAINS_PERSISTENT |
|
||||
VIR_CONNECT_LIST_DOMAINS_TRANSIENT |
|
||||
VIR_CONNECT_LIST_DOMAINS_RUNNING |
|
||||
VIR_CONNECT_LIST_DOMAINS_PAUSED |
|
||||
VIR_CONNECT_LIST_DOMAINS_SHUTOFF |
|
||||
VIR_CONNECT_LIST_DOMAINS_OTHER |
|
||||
VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE |
|
||||
VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE |
|
||||
VIR_CONNECT_LIST_DOMAINS_AUTOSTART |
|
||||
VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART |
|
||||
VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT |
|
||||
VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT,
|
||||
VIR_CONNECT_LIST_DOMAINS_PAUSED |
|
||||
VIR_CONNECT_LIST_DOMAINS_PERSISTENT |
|
||||
VIR_CONNECT_LIST_DOMAINS_RUNNING |
|
||||
VIR_CONNECT_LIST_DOMAINS_SHUTOFF,
|
||||
NULL);
|
||||
|
||||
if (!priv->conn || virConnectIsAlive(priv->conn) <= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user