提交 74f044ac 编写于 作者: M Michal Privoznik

virsh: Offer only persistent domains for autostart

The 'autostart' command accepts only persistent domains. Make the
completer return only those.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 3b225256
...@@ -1037,7 +1037,7 @@ static const vshCmdInfo info_autostart[] = { ...@@ -1037,7 +1037,7 @@ static const vshCmdInfo info_autostart[] = {
}; };
static const vshCmdOptDef opts_autostart[] = { static const vshCmdOptDef opts_autostart[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(0), VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_PERSISTENT),
{.name = "disable", {.name = "disable",
.type = VSH_OT_BOOL, .type = VSH_OT_BOOL,
.help = N_("disable autostarting") .help = N_("disable autostarting")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册