From nobody Sun Feb 8 19:45:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1574930314; cv=none; d=zohomail.com; s=zohoarc; b=j9kiOU3Aat69Ityq8YEYswApmLnC0xxqosY0ectxk5pdeSXuDEVTF+Yxk/r+A1dZIZRNiokOvxYTFri6c+HXmt/fjBmqtcIgnPqi1VDldD4N8wRln5s11IgwY9vrIFp4QXNLsYTACrGPDsoUz/0YZSDqG6HozNOtbJfEQKy6nnc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574930314; 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=Gf/hYFnYPmp+cDmo/kS0nYSpBNsKl0LiL9uJ5y9tb8U=; b=Yni5D04ZNzXUleiGRBx3WRU7J4rjqwJR36TaJDzx/PjufwWN9sMMI4KHUIPAf+wHbP1br5MLUyEYw+ccXhWXm7nr3Yu3uUlb7R06nK/byETdNaQPTbc0M6gFVdfO4pZp3ae9xtVWU5M2hNZilGXsWFAHF2duXQl/k823lscWGk8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 157493031402470.60270931293496; Thu, 28 Nov 2019 00:38:34 -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-87-FhuiKcOdOMKFfXakeWS8Dw-1; Thu, 28 Nov 2019 03:38:31 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 61ECC107ACE5; Thu, 28 Nov 2019 08:38:25 +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 EAED25D6C8; Thu, 28 Nov 2019 08:38:24 +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 4242618089CD; Thu, 28 Nov 2019 08:38:24 +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 xAS8cMcH022721 for ; Thu, 28 Nov 2019 03:38:22 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9CAE860C81; Thu, 28 Nov 2019 08:38:22 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 26DC960C80 for ; Thu, 28 Nov 2019 08:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574930312; 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=Gf/hYFnYPmp+cDmo/kS0nYSpBNsKl0LiL9uJ5y9tb8U=; b=fq5blyqEUFmvYFShC0ryB8Afpl1Cqustp52xz1AVD+37yMr46+0xj97VBrqvWeJSBo0VAi nctT/jC9jbsU6TUkclZNUKCUQ3HFyDxXNzXUZSBWMW3whYN8qxoYmNW5wbn9eEfpBnRiJH tJTg9ibgOt7ZgeL2niAK1iJTUy4qrWw= From: Pavel Hrdina To: libvir-list@redhat.com Date: Thu, 28 Nov 2019 09:38:18 +0100 Message-Id: <6848588ff516db40af7ae12b439243de08b46cf2.1574930285.git.phrdina@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] [python PATCH] generator.py: add mapping for VIR_DOMAIN_QEMU_AGENT_COMMAND_* 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.15 X-MC-Unique: FhuiKcOdOMKFfXakeWS8Dw-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" Libvirt commit <95f5ac9ae52455e9da47afc95fa31c9456ac27ae> changed the VIR_DOMAIN_QEMU_AGENT_COMMAND_* enum values to use different enum values instead of direct numbers. We need to translate it back. Traceback (most recent call last): File "generator.py", line 2143, in qemuBuildWrappers(sys.argv[1]) File "generator.py", line 2008, in qemuBuildWrappers items.sort(key=3Dlambda i: (int(i[1]), i[0])) File "generator.py", line 2008, in items.sort(key=3Dlambda i: (int(i[1]), i[0])) ValueError: invalid literal for int() with base 10: 'VIR_DOMAIN_AGENT_RESPO= NSE_TIMEOUT_BLOCK' Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa --- generator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/generator.py b/generator.py index 913dab8..3352521 100755 --- a/generator.py +++ b/generator.py @@ -261,6 +261,12 @@ def lxc_enum(type, name, value): def qemu_enum(type, name, value): if type not in qemu_enums: qemu_enums[type] =3D {} + if value =3D=3D 'VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK': + value =3D -2 + elif value =3D=3D 'VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT': + value =3D -1 + elif value =3D=3D 'VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT': + value =3D 0 if onlyOverrides and name not in qemu_enums[type]: return qemu_enums[type][name] =3D value --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list