1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-12-18 20:23:49 +03:00

sanitytest: Add virNetworkCreateXMLFlags() to list of name fixups

When checking whether each C API is exported to Python and vice
versa the sanitytest script is doing some name fixing. For
instance virNetworkCreateXML() is translated into
virConnect.networkCreateXML(). However, we have new C API on the
way: virNetworkCreateXMLFlags() which is not on the list for
these name fixups. Add it there.

Mind you, the python code generator works just fine because
generator.py:1082 compares just the prefix.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik
2021-09-24 08:31:54 +02:00
parent cd18f45235
commit 7d47523bb0

View File

@@ -253,7 +253,8 @@ for name, (klass, func, cname) in sorted(basicklassmap.items()):
"LookupByMACString", "LookupByUsage", "LookupByVolume",
"LookupByTargetPath", "LookupSCSIHostByWWN", "LookupByPortDev",
"Restore", "RestoreFlags",
"SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]:
"SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags",
"CreateXMLFlags"]:
if klass != "virDomain":
func = klass[3:] + func