changeBegin
method.
Example 7.16. Using changeCommit
# Example-32.py #!/usr/bin/env python3 import sys import libvirt conn = None try: conn = libvirt.open("qemu:///system") except libvirt.libvirtError as e: print(repr(e), file=sys.stderr) exit(1) conn.changeCommit() conn.close() exit(0)
changeRollback
method can be used to roll back an uncommited change.