From nobody Mon Apr 29 15:33:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1574256945; cv=none; d=zoho.com; s=zohoarc; b=L9Kt/tvRss0FUWHF/4899Zr6MyUVsiRtdiNMRH0xsEYBFzdayWRXwTbTDT10/kL4YDJmZlGGFOupwmx8lfcec0hQ1ivwI2RuMrxEBcZ5KSSqitBAfBoFBEIpg3/v1Yv7rSQaayIvDzNYV2IW4M5WhtRQMaVh1okxvDEKfNYE0yg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574256945; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=AJSoqi/Eh9YtxoZ7jTZVdMF+Oqx7FUIyyFzmFdh8G8Q=; b=VpTCY1WyoNuaMdA8W8eLcWi+5JOnoew/w8anGzFwM1BlWlDXnXlZ2TTqufyHqW5PB54VzKPRKv53NoLWy4yJ/ucDV4MMwDUX0XmI15H+eLdPUFHLv58tbrMTk4aw2RU1oS2v4t2N1jzaDiHbMnnoPn9/HUXpn3kjLk9cJI28Zo4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1574256945933785.1321425028722; Wed, 20 Nov 2019 05:35:45 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-147-KNgZ0pQpOv-vMQxsLAG40g-1; Wed, 20 Nov 2019 08:35:42 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A9D198C3940; Wed, 20 Nov 2019 13:35:36 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6CFF260493; Wed, 20 Nov 2019 13:35:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E9DE04BB5C; Wed, 20 Nov 2019 13:35:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xAKDZTcL001874 for ; Wed, 20 Nov 2019 08:35:29 -0500 Received: by smtp.corp.redhat.com (Postfix) id A182251F1B; Wed, 20 Nov 2019 13:35:29 +0000 (UTC) Received: from lindworm.usersys.redhat.com (unknown [10.43.2.118]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2A81C51C86 for ; Wed, 20 Nov 2019 13:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574256944; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AJSoqi/Eh9YtxoZ7jTZVdMF+Oqx7FUIyyFzmFdh8G8Q=; b=Xo1PVgsVLH3SJKqwkz8ENEsx14nMobQ+iTaTqF7ztsbgJP3Px1dL11codi+7Vfhwqiy5yA COwRYsyEPhYo9TiN08uRLFxARCUCCQyG8QXMjqO/7vHxtFHSDvISD2RO7jRrPvL8TDM2xO NMMtcCfBlB5jUiBKxFWcxUq5dcFhigc= From: Pino Toscano To: libvir-list@redhat.com Date: Wed, 20 Nov 2019 14:35:24 +0100 Message-Id: <20191120133524.12477-1-ptoscano@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] virsh: limit completion of 'domhostname' to active domains X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: KNgZ0pQpOv-vMQxsLAG40g-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Getting the hostname of 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 --- tools/virsh-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] =3D { }; =20 static const vshCmdOptDef opts_domhostname[] =3D { - VIRSH_COMMON_OPT_DOMAIN_FULL(0), + VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name =3D NULL} }; =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list