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