summaryrefslogtreecommitdiff
path: root/libvirt-override-virNetwork.py
Commit message (Collapse)AuthorAgeFilesLines
* override: Convert to list comprehensionPhilipp Hahn2020-08-181-5/+1
| | | | | | :%s/retlist = list()\n\s*\(for \w\+ in ret\):\n\s*retlist.append(\(.*\))\n\n\s*return retlist/return [\2 \1]/ Signed-off-by: Philipp Hahn <hahn@univention.de>
* override: Add manual PEP 484 type annotationsPhilipp Hahn2020-08-181-1/+1
| | | | Signed-off-by: Philipp Hahn <hahn@univention.de>
* Remove legacy libvirtError argumentsPhilipp Hahn2020-08-061-1/+1
| | | | | | | | | | | | 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>
* fix class type instantiated when listing network portsDaniel P. Berrangé2020-01-031-2/+2
| | | | | Reviewed-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Add missing impl of virNetworkListAllPortsDaniel P. Berrangé2019-06-201-0/+11
This API needs manual impl as the generator cannot cope Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>