From: Michal Privoznik Date: Thu, 25 Jan 2018 13:50:32 +0000 (+0100) Subject: virsh: Offer only persistent domains for autostart X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=74f044acf7921c9c6a2f7681916c016c3b6d7f57;p=libvirt.git virsh: Offer only persistent domains for autostart The 'autostart' command accepts only persistent domains. Make the completer return only those. Signed-off-by: Michal Privoznik --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 0f329d6d72..5a0e0c1b21 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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")