From: Pino Toscano Date: Wed, 20 Nov 2019 13:24:33 +0000 (+0100) Subject: virsh: limit completion of 'domhostname' to active domains X-Git-Tag: v5.10.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05d28facb5529d946bc8fa96e30e7f5533b1eb12;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index b248a15c16..6be9780836 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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} };