summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChris Lalancette <clalance@redhat.com>2010-05-19 09:02:30 -0400
committerChris Lalancette <clalance@redhat.com>2010-05-20 13:49:38 -0400
commita4079e7ec63c7ecdc5fcd23b33831c58e3679d46 (patch)
tree1041013675a52335025db9088bd09081eb64de7a /tests
parenta6daa0108e072db02855e4203b7cd6066ddc2b39 (diff)
downloadlibvirt-python-split-a4079e7ec63c7ecdc5fcd23b33831c58e3679d46.tar.gz
libvirt-python-split-a4079e7ec63c7ecdc5fcd23b33831c58e3679d46.tar.xz
libvirt-python-split-a4079e7ec63c7ecdc5fcd23b33831c58e3679d46.zip
Fix up the python bindings for snapshotting.
This involved a few fixes. To start with, an virDomainSnapshot object is really tied to a domain, not a connection, so we have to generate a slightly different object so that we can get at self._dom for the object. Next, we had to "dummy" up an override piece of XML with a bogus argument that the function doesn't actually take. That's so that the generator places virDomainRevertToSnapshot underneath the correct class (namely, the virDomain class). Finally, we had to hand-implement the virDomainRevertToSnapshot implementation, ignoring the bogus pointer we are being passed. With all of this in place, I was able to successfully take a snapshot and revert to it using only the Python bindings. Signed-off-by: Chris Lalancette <clalance@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions