]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Offer only persistent domains for autostart
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Jan 2018 13:50:32 +0000 (14:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 31 Jan 2018 14:41:51 +0000 (15:41 +0100)
The 'autostart' command accepts only persistent domains. Make the
completer return only those.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c

index 0f329d6d72481fe81908519cd49d4487f451391c..5a0e0c1b2153e9da39a04bb9b13568abda26c0ce 100644 (file)
@@ -1037,7 +1037,7 @@ static const vshCmdInfo info_autostart[] = {
 };
 
 static const vshCmdOptDef opts_autostart[] = {
-    VIRSH_COMMON_OPT_DOMAIN_FULL(0),
+    VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_PERSISTENT),
     {.name = "disable",
      .type = VSH_OT_BOOL,
      .help = N_("disable autostarting")