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 164 forks source link

Content view should accept repository label in place of name+product #1549

Open kkeane opened 1 year ago

kkeane commented 1 year ago
SUMMARY

In the content_view module, repositories must be specified as name + product. This can break when the name has been changed in the GUI or elsewhere. One specific example where this happened is with the RHEL 8 repositories; RedHat apparently changed the names of these repositories at some point, removing the architecture name. For instance, the repository with label Red_Hat_Enterprise_Linux_8_for_x8664-_BaseOS_RPMs_8 on one of my systems is called:

Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs noarch 8

but on another the same repository has the name:

Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8

This is already possible in the repository_set module; content_view should simply allow the same.

ISSUE TYPE

To resolve this issue, it should be possible to specify the repository by its label (which is immutable) rather than the name + product.

kkeane commented 1 year ago

This appears to be the same issue as requested in #336