mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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:
parent
b5335e956b
commit
9124b9f736
@ -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}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user