mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virsh: limit completion of 'domhostname' to active domains
Getting the hostname of a guest usually requires a in-guest agent, or generally can be determined only on active domains. Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8fa0374c5b
commit
05d28facb5
@ -11668,7 +11668,7 @@ static const vshCmdInfo info_domhostname[] = {
|
||||
};
|
||||
|
||||
static const vshCmdOptDef opts_domhostname[] = {
|
||||
VIRSH_COMMON_OPT_DOMAIN_FULL(0),
|
||||
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
|
||||
{.name = NULL}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user