summaryrefslogtreecommitdiff
path: root/libvirt-override-virNetwork.py
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2018-11-21 07:55:57 +0100
committerPhilipp Hahn <hahn@univention.de>2020-08-06 08:50:37 +0200
commitee5c856af7563619305a0c68ab32c06e6e6c1b2d (patch)
treec041309150f2865fb367e30dfa519fd4b036d7bc /libvirt-override-virNetwork.py
parent0ca8dc6340a85d0cb021d860a166ad4b92251d23 (diff)
downloadlibvirt-python-ee5c856af7563619305a0c68ab32c06e6e6c1b2d.tar.gz
Remove legacy libvirtError arguments
The fields have been deprecated in C with git:f60dc0bc09f09c6817d6706a9edb1579a3e2b2b8 They are only passed to the libvirtError constructor, but not stored for later or used anywhere else. sed -ri '/raise libvirtError/s/, \w+=self(\._dom)?//' *.py Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'libvirt-override-virNetwork.py')
-rw-r--r--libvirt-override-virNetwork.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-override-virNetwork.py b/libvirt-override-virNetwork.py
index 6e86590..df38914 100644
--- a/libvirt-override-virNetwork.py
+++ b/libvirt-override-virNetwork.py
@@ -2,7 +2,7 @@
"""List all ports on the network and returns a list of network port objects"""
ret = libvirtmod.virNetworkListAllPorts(self._o, flags)
if ret is None:
- raise libvirtError("virNetworkListAllPorts() failed", conn=self)
+ raise libvirtError("virNetworkListAllPorts() failed")
retlist = list()
for domptr in ret: