On 05/16/2014 12:06 PM, Stas Bobylev wrote:
I was wondering if there have been any changes with the
packages.search.name API call? Since the upgrade to version 2.1, the
call only returns a single result. Previously (at least in version 1.8),
the same call would return all packages, including different versions
and releases of the same package, that matched the search pattern.

#!/usr/bin/python

import xmlrpclib

search_pattern = "some_custom_package"

client = xmlrpclib.Server("https://spacewalk/rpc/api";, verbose=0)

key = client.auth.login("user", "password")

package_list = client.packages.search.name(key, search_pattern)

print package_list

Thanks,

Stas

This email and any attachments are strictly confidential, may be
privileged, and are intended only for the use of the person(s) named
above. Any other person is strictly prohibited from disclosing,
distributing, copying or using it. If you are not the intended recipient
(or are not receiving this communication on behalf of the intended
recipient), please notify the sender immediately by return email or
telephone call, and securely destroy this communication. Thank you.


_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list


Hi Stas,

Yes you're absolutely correct. This bug was introduced during some performance improvements. It is fixed in Spacewalk nightly, and will be released in Spacewalk 2.2. See https://bugzilla.redhat.com/show_bug.cgi?id=1099097 for more information.

-Stephen

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to