I am having a CENTOS machine over tht i have installed ovirt-sdk using following command :
from ovirtsdk.api import API
from ovirtsdk.xml import params
import time
rhevm_password = "password"
rhevmAPI = API(url=rhevm_uri, username=rhevm_username, password=rhevm_password)
print "Connected to RHEVM Successful"
instances = rhevmAPI.vms.list()
I got following errror :
$ python rhevmtest.py
Connected to RHEVM Successful
Traceback (most recent call last):
File "romil_test.py", line 13, in <module>
instances = rhevmAPI.vms.list()
File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 6615, in list
headers={"Filter":contextmanager.get('filter')}).get_vm()
AttributeError: 'str' object has no attribute 'get_vm'