]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virshDomainNameCompleter: Prune accepted flags
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Jan 2018 13:47:56 +0000 (14:47 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 31 Jan 2018 14:41:51 +0000 (15:41 +0100)
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>
tools/virsh-completer.c

index e216d9076139ae80899c48c591d5686cba7541a9..e3b8234b4170ee79fe9cc569fea3d537c7fd378d 100644 (file)
@@ -45,18 +45,11 @@ virshDomainNameCompleter(vshControl *ctl,
 
     virCheckFlags(VIR_CONNECT_LIST_DOMAINS_ACTIVE |
                   VIR_CONNECT_LIST_DOMAINS_INACTIVE |
+                  VIR_CONNECT_LIST_DOMAINS_OTHER |
+                  VIR_CONNECT_LIST_DOMAINS_PAUSED |
                   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_SHUTOFF,
                   NULL);
 
     if (!priv->conn || virConnectIsAlive(priv->conn) <= 0)