Hi
I am trying to set Metada of running virtual machine, but its giving me an error.
Here is my code
import libvirt
dom = conn.lookupByName('virtspace')
type = 'VIR_DOMAIN_METADATA_DESCRIPTION'
key = ''
uri = ''
dom.setMetadata(conn, type, 'myDescription', key, uri)
and here is the error.
Traceback (most recent call last):
File "setMeta.py", line 11, in <module>
dom.setMetadata(conn, type, 'meta_test', key, uri)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1460, in setMetadata
ret = libvirtmod.virDomainSetMetadata(self._o, type, metadata, key, uri, flags)
AttributeError: virConnect instance has no attribute '__trunc__'