summaryrefslogtreecommitdiff
path: root/libvirt-qemu-override-api.xml
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2020-04-20 18:28:36 +0200
committerPhilipp Hahn <hahn@univention.de>2020-07-27 13:24:36 +0200
commit932055e3cb81e113ce2e6274fb5e14deee5789de (patch)
treefe035a69b21cef26bb48985c96e8fff79c828781 /libvirt-qemu-override-api.xml
parenta65d230ded7d553ac4465ba4e64b82745dec69c2 (diff)
downloadlibvirt-python-932055e3cb81e113ce2e6274fb5e14deee5789de.tar.gz
generator: Fix domainCheckpoint.listAllChildren()
virDomainCheckpoint(dom, _obj) expects a reference to the virDomain as its first argument, but virDomainCheckpoint.listAllChildren() passes `self` instead: libvirt.py:7056: error: Argument 1 to "virDomainCheckpoint" has incompatible type "virDomainCheckpoint"; expected "virDomain" >>> import libvirt >>> con = libvirt.open('test:///default') >>> dom = con.lookupByName("test") >>> first = dom.checkpointCreateXML("""<domaincheckpoint><name>First</name></domaincheckpoint>""") >>> second = dom.checkpointCreateXML("""<domaincheckpoint><name>Second</name></domaincheckpoint>""") >>> child, = first.listAllChildren() >>> second.domain() <libvirt.virDomain object at 0x7f828d777b80> ^^^^^^^^^ >>> child.domain() <libvirt.virDomainCheckpoint object at 0x7f828d8160a0> ^^^^^^^^^^^^^^^^^^^ Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'libvirt-qemu-override-api.xml')
0 files changed, 0 insertions, 0 deletions