virsh: limit completion of backup-{begin, dumpxml} to active domains

Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Lin Ma 2020-09-11 15:13:17 +08:00 committed by Michal Privoznik
parent b5335e956b
commit 9124b9f736

View File

@ -36,7 +36,7 @@ static const vshCmdInfo info_backup_begin[] = {
};
static const vshCmdOptDef opts_backup_begin[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(0),
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
{.name = "backupxml",
.type = VSH_OT_STRING,
.help = N_("domain backup XML"),
@ -112,7 +112,7 @@ static const vshCmdInfo info_backup_dumpxml[] = {
};
static const vshCmdOptDef opts_backup_dumpxml[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(0),
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
{.name = NULL}
};