From nobody Fri May 17 09:38:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 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=1670519206; cv=none; d=zohomail.com; s=zohoarc; b=boKFi+DQSdjASTlt8A8RLBuxDM3QZm5Jc8q9XqyDivUyMj7DHU+qtVkzRn8cUEffmiAqJqubvzeDb2TBluBNkIwwCt0tJ0jYrrmL4jvI1t+2BlIR8hxuJBP1CcsXeamShUck+iNPh5AWyX28Q+SJ+hDcthsmjma7fjZFiMn76Q0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670519206; 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=RO9YBjVYyAHxEvDFyUmzEgAPq93niUDxHyjLyyWMdOw=; b=dCOUNcRA00eb91bBcyyDp9TSlpUlxylwQd/p/1RQAHDUvf3/xkJkFiDhrNPIzJWQ00aY/suRQfWW2wwZHcCshU89x9vyZjKHMrMISJJT4XN1R3S/8uUMUWS00cITZT0J8T5dSonFOX8qsp15nEpYTob6OlYqs/sE0Xp4EqBHfGE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1670519206070166.39812943739616; Thu, 8 Dec 2022 09:06:46 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-57-GlmEsuTOOrGrh_ElY7LYbg-1; Thu, 08 Dec 2022 12:06:43 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B2BD481172A; Thu, 8 Dec 2022 17:06:40 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F44617582; Thu, 8 Dec 2022 17:06:40 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D28451946A44; Thu, 8 Dec 2022 17:06:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 66FB41946A41 for ; Thu, 8 Dec 2022 17:06:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 45A382166B29; Thu, 8 Dec 2022 17:06:26 +0000 (UTC) Received: from harajuku.usersys.redhat.com (ovpn-192-19.brq.redhat.com [10.40.192.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C4DD72166B2B for ; Thu, 8 Dec 2022 17:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670519205; 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=RO9YBjVYyAHxEvDFyUmzEgAPq93niUDxHyjLyyWMdOw=; b=fmX30JZC3cMhOyoxxgaaYZ6S/omvTNFXK2ElrRmOC5biIMrAelmysjgdyGkF9GTGWML0mh tXf7jpPoIN49Srgt+Z6EpA9L3Q2P1y+/SY7yDZxzR7MEe1h6/2okVaTZE2BZfvQq/3gn47 Y+SLma1FNLBx7jRW8Tju08OJJPKHG74= X-MC-Unique: GlmEsuTOOrGrh_ElY7LYbg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH] tools: Fix style issues in virt-qemu-sev-validate Date: Thu, 8 Dec 2022 18:06:23 +0100 Message-Id: <20221208170623.283007-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1670519207328100005 Content-Type: text/plain; charset="utf-8"; x-default="true" The script had an incorrect interpreter line until commit f6a19d7264bb, so the flake8 check would not realize it needed to pick it up and these issues, some of which were present it the very first version that was committed, were not being reported. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: J=C3=A1n Tomko --- tools/virt-qemu-sev-validate | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/virt-qemu-sev-validate b/tools/virt-qemu-sev-validate index 46a92aa7a0..3d8b292fef 100755 --- a/tools/virt-qemu-sev-validate +++ b/tools/virt-qemu-sev-validate @@ -849,7 +849,7 @@ class ConfidentialVM(abc.ABC): secret64 =3D b64encode(secret_table_ciphertext).decode('utf8') log.debug("Header: %s (%d bytes)", header64, len(header)) log.debug("Secret: %s (%d bytes)", - secret64, len(secret_table_ciphertext)) + secret64, len(secret_table_ciphertext)) =20 return header64, secret64 =20 @@ -955,7 +955,7 @@ class LibvirtConfidentialVM(ConfidentialVM): self.dom =3D self.conn.lookupByName(id_name_uuid) =20 log.debug("VM: id=3D%d name=3D%s uuid=3D%s", - self.dom.ID(), self.dom.name(), self.dom.UUIDString()) + self.dom.ID(), self.dom.name(), self.dom.UUIDString()) =20 if not self.dom.isActive(): raise InvalidStateException( @@ -1331,5 +1331,6 @@ def main(): print("ERROR: %s" % e, file=3Dsys.stderr) sys.exit(6) =20 + if __name__ =3D=3D "__main__": main() --=20 2.38.1