theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
147 stars 163 forks source link

Improve options to search subscriptions when adding subs to activation keys #541

Open wbclark opened 4 years ago

wbclark commented 4 years ago
SUMMARY

When a user wants to add subscriptions to an activation key, currently they can use the pool_id to get an exact match, but using the subscription name will fail in the common case that the name is one to many. Searching by name should be able to handle the one to many case and provide additional search filters such as service_level and expiration_date to give the user better control over what subscriptions are added to the activation key without depending on the pool_id which won't be available until manifest has been imported and/or custom products have been created.

ISSUE TYPE
wbclark commented 4 years ago

@sean797 : I have opened https://github.com/Katello/katello/pull/8396 to allow Katello API users to search subscriptions using upstream_pool_id so that we can use the functionality here