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:
@@ -253,7 +253,8 @@ for name, (klass, func, cname) in sorted(basicklassmap.items()):
|
|||||||
"LookupByMACString", "LookupByUsage", "LookupByVolume",
|
"LookupByMACString", "LookupByUsage", "LookupByVolume",
|
||||||
"LookupByTargetPath", "LookupSCSIHostByWWN", "LookupByPortDev",
|
"LookupByTargetPath", "LookupSCSIHostByWWN", "LookupByPortDev",
|
||||||
"Restore", "RestoreFlags",
|
"Restore", "RestoreFlags",
|
||||||
"SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]:
|
"SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags",
|
||||||
|
"CreateXMLFlags"]:
|
||||||
if klass != "virDomain":
|
if klass != "virDomain":
|
||||||
func = klass[3:] + func
|
func = klass[3:] + func
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user