Bug #14043
closedhammer activation key product-content does not filter content based on organization
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1250610
Description of problem:
hammer activation key product-content does not filter content based on organization
Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 15
How reproducible:
Always
Steps to Reproduce:
1. Create two Orgs - enable, sync different RH content on both the orgs
2. Create an activation key, attach subscription and navigate to web ui -> select the activation key -> Product Content tab -> See that the enabled/synced repos are displayed there - this works as expected
3. Check the same in hammer cli:
hammer> activation-key product-content --id=1
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
ID | NAME | TYPE | URL | GPG KEY | LABEL
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
2456 | Red Hat Enterprise Linux 7 Server (RPMs) | | | | rhel-7-server-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
hammer> activation-key product-content --id=1 --organization-id=3
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
ID | NAME | TYPE | URL | GPG KEY | LABEL
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
2456 | Red Hat Enterprise Linux 7 Server (RPMs) | | | | rhel-7-server-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
Actual results:
Both the hammer commands listed above lists all the enabled/synced repos across all the organizations of this satellite
Expected results:
Both the above commands should list the enabled/sync repos corresponding to the current organization (selected activation key's organization) only.
Additional info: