----- Original Message ----- > From: "Shanil S" <xielessha...@gmail.com> > To: "Shahar Havivi" <shah...@redhat.com>, users@ovirt.org > Sent: Wednesday, July 2, 2014 7:48:41 AM > Subject: [ovirt-users] Ovirt Python library is getting error > > Hi Shahar, > > I have downloaded the ovirt Python library from > http://www.ovirt.org/Python-sdk and trying to list out the vms but i am > getting the following error > > --------------------------------------------------------------------------------------------------------------------------- > File "build/bdist.linux-x86_64/egg/ovirtsdk/api.py", line 145, in __init__ > File "build/bdist.linux-x86_64/egg/ovirtsdk/infrastructure/proxy.py", line > 118, in request > File "build/bdist.linux-x86_64/egg/ovirtsdk/infrastructure/proxy.py", line > 144, in __doRequest > File "build/bdist.linux-x86_64/egg/ovirtsdk/infrastructure/proxy.py", line > 157, in __xml2py > ovirtsdk.infrastructure.errors.FormatError: [ERROR]::Server reply is in > inappropriate format. > ---------------------------------------------------------------------------------------------------------------------- > > The following code is used for displaying the vms > > api = API('http://<ip>:443/api', 'usernamel','password')
s/http/https/ > > vms1 = api.vms.list() > print vms1 > > Could you please check it if any issues with it ? Also is it necessary to > give secure connection ? > > > > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users