Hi JoeyThe error I get is:File "createVmFromTemplate.py", line 40, in <module>
nic = nics_service.list(search='name=nic1')[0]
TypeError: list() got an unexpected keyword argument 'search'
The SDK versions I have are:
- ovirt-engine-sdk-python-3.6.9.1-1.el7ev.noarch
- python-ovirt-engine-sdk4-4.1.7-1.el7ev.x86_64
Attempting to remove the v3.6 SDK results in yum trying to remove RHV...
Thanks
On Tue, Sep 17, 2019 at 3:03 PM Joey Ma <majunjiev@gmail.com> wrote:Hi Colin,I tested the above snippets with the latest Python SDK v4.3.3 (Python 3.7.4) on Engine v4.1.9.1 and everything works fine.Could you please provide the versions of Python/SDK/Engine in your local environment, as well as the error output?Regards,JoeyOn Mon, Sep 16, 2019 at 9:40 AM Colin Coe <colin.coe@gmail.com> wrote:_______________________________________________Hi allI've got the following Python snippet which works fine under 4.3 but I need it to work under 4.1 as well.---nics_service = vms_service.vm_service(vm.id).nics_service()
nic = nics_service.list(search='name=nic1')[0]---Under 4.1, it barfs on "nics_service.list(search='name=nic1')[0]".What do I need to do to make it work under 4.1?Thanks
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/AIULSYOC4SNJKS7CFJAFQIFSLVFICICQ/