From nobody Wed May 8 04:54:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1558962445; cv=none; d=zoho.com; s=zohoarc; b=np7jy0Hc0Iq/ve68pQEdfP7shFX/cqRkdMuWnO29XdVrXC1dQW3DgbB0jyromAxQMMCGcX+y9Ml3V5SnxmwwEDP5PZUZV1PDvV++ka+dESzArM00gOjmrQ+xXER2yrLtw0pMdpNDu3ZzWh4IsWQUE7DiXBzRp1r700XxnKNWHZ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558962445; 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:ARC-Authentication-Results; bh=C+mSnlVWI3BR+4cDvsNDRho99fiz/hTCI3ZTGUqOg5w=; b=JM7acrxfbwJexS8641GYpXpdhd5G2tCZmAcsycu62fLfO1eJo7ACbKAF/tudbKPoUWv5Vc7Y3NdBmrm+QJ3TXbP/7PH40YuAVg43PyBXqSjxEK3801ZuiRmC8l22vcKESu7WKDYtryQSo91AiORJS4W8oVJhNFnSqx22uh7ycQM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558962445553206.37256179050064; Mon, 27 May 2019 06:07:25 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 52421307D861; Mon, 27 May 2019 13:07:17 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8A0DC19C58; Mon, 27 May 2019 13:07:13 +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 52BE718433A1; Mon, 27 May 2019 13:07:07 +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 x4RD6uL1013923 for ; Mon, 27 May 2019 09:06:56 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3D61C60C75; Mon, 27 May 2019 13:06:56 +0000 (UTC) Received: from kinshicho.redhat.com (unknown [10.40.205.154]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 95B0F60C64 for ; Mon, 27 May 2019 13:06:53 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Mon, 27 May 2019 15:06:51 +0200 Message-Id: <20190527130651.15121-1-abologna@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] [jenkins-ci PATCH] lcitool: Don't warn when using package manager directly 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Mon, 27 May 2019 13:07:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" We only do this when performing operations that the corresponding Ansible module doesn't support, so we know what we're doing and don't want warnings to show up. Note that while only the dnf and yum modules complain at the moment, we might as well use warn=3Dno everywhere so that we're already covered in case in the future the pkgng module starts detecting this as well. Signed-off-by: Andrea Bolognani --- guests/playbooks/update/tasks/base.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guests/playbooks/update/tasks/base.yml b/guests/playbooks/upda= te/tasks/base.yml index 8fe114e..e0efe5d 100644 --- a/guests/playbooks/update/tasks/base.yml +++ b/guests/playbooks/update/tasks/base.yml @@ -52,11 +52,15 @@ =20 - name: Update installed packages shell: '{{ package_manager }} update && {{ package_manager }} upgrade -y' + args: + warn: no when: - package_format =3D=3D 'pkg' =20 - name: Clean up packages after update shell: '{{ package_manager }} clean packages -y && {{ package_manager }}= autoremove -y' + args: + warn: no when: - package_format =3D=3D 'rpm' =20 @@ -69,6 +73,8 @@ =20 - name: Clean up packages after update shell: '{{ package_manager }} clean -y && {{ package_manager }} autoremo= ve -y' + args: + warn: no when: - package_format =3D=3D 'pkg' =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list