libvirt.py 446 B

123456789101112131415
  1. """mock libvirt module
  2. WARNING: you did not import real libvirt module
  3. This is needed, because we don't currently ship libvirt-python for templates.
  4. The module contains libvirtError and openReadOnly() function, which
  5. does nothing and raises the aforementioned exception. More functions can be
  6. added as needed.
  7. """
  8. class libvirtError(Exception):
  9. pass
  10. def openReadOnly(*args, **kwargs):
  11. raise libvirtError('mock module, always raises')