Hello , 

I am having a CENTOS machine over tht i have installed  ovirt-sdk using following command :

$ git clone http://gerrit.ovirt.org/ovirt-engine-sdk
yum install -y rpm-build python-devel python-setuptools
make rpm
yum localinstall rpmtop/RPMS/noarch/ovirt-engine-sdk-x.y-z.noarch.rpm


thn i have written  one script  rhevmtest.py :


from ovirtsdk.api import API
from ovirtsdk.xml import params
import time

rhevm_uri = "http://rhevm301.abc.xyz.com:8080/api"
rhevm_username = "admin@rhevm301.abc.xyz.com"
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'




Regards 
Romil Gupta