libvirt-python/0001-fix-constructor-param-name-for-virDomainSnapshot-vir.patch

34 lines
1.3 KiB
Diff
Raw Normal View History

From 613411502d2cdf3541837710239409044a376b0a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
Date: Tue, 6 Oct 2020 10:30:59 +0100
Subject: [PATCH] fix constructor param name for virDomainSnapshot /
virDomainCheckpoint
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes 7f021c21d6a091ca33615852d6061e75b2500f3f
Resolves https://gitlab.com/libvirt/libvirt-python/-/issues/4
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generator.py b/generator.py
index 3eb997f..43183b4 100755
--- a/generator.py
+++ b/generator.py
@@ -1482,7 +1482,7 @@ def buildWrappers(module: str) -> None:
classes.write(" def __init__(self, conn, _obj=None):\n")
classes.write(" self._conn = conn\n")
elif classname in ["virDomainCheckpoint", "virDomainSnapshot"]:
- classes.write(" def __init__(self, net, _obj=None):\n")
+ classes.write(" def __init__(self, dom, _obj=None):\n")
classes.write(" self._dom = dom\n")
classes.write(" self._conn = dom.connect()\n")
elif classname in ["virNetworkPort"]:
--
2.26.2