[ovirt-devel] Ruby SDK NIC search

Marc Young 3vilpenguin at gmail.com
Tue Feb 21 13:16:58 UTC 2017


Is there something malformed in this? Based on previous usages of
`.list(search: "...")` this does not seem like correct behavior


> env[:connection].system_service.vnic_profiles_service.list(search:
"name=#{iface_options[:network_name]}").map(&:name)
=> ["ovirtmgmt", "ovirtmgmt"]

> env[:connection].system_service.vnic_profiles_service.list(search:
"name=foo").map(&:name)
=> ["ovirtmgmt", "ovirtmgmt"]

> env[:connection].system_service.vnic_profiles_service.list.map(&:name)
=> ["ovirtmgmt", "ovirtmgmt"]


No matter what I provide it always returns all

Search works for other services:

> env[:connection].system_service.vms_service.list(search:
'name=myvm').map(&:name)
=> []

> env[:connection].system_service.vms_service.list(search:
'name=testing').map(&:name)
=> ["testing"]

> env[:connection].system_service.vms_service.list(search:
'name=e').map(&:name)
=> []
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170221/e5038d77/attachment.html>


More information about the Devel mailing list