Project

General

Profile

Bug #17766

hammer erratum list: Search with product name return all erratum

Added by Andrew Kofink over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1400235
Description of problem:
hammer erratum list: Search with product name return all erratum

Version-Release number of selected component (if applicable):
  • candlepin-0.9.54.13-1.el7.noarch
  • candlepin-selinux-0.9.54.13-1.el7.noarch
  • foreman-1.13.1-1.el7.noarch
  • foreman-compute-1.13.1-1.el7.noarch
  • foreman-debug-1.13.1-1.el7.noarch
  • foreman-discovery-image-3.1.1-17.el7sat.noarch
  • foreman-ec2-1.13.1-1.el7.noarch
  • foreman-gce-1.13.1-1.el7.noarch
  • foreman-installer-1.13.1-1.el7.noarch
  • foreman-installer-katello-3.2.0-3.rc4.el7.noarch
  • foreman-libvirt-1.13.1-1.el7.noarch
  • foreman-openstack-1.13.1-1.el7.noarch
  • foreman-ovirt-1.13.1-1.el7.noarch
  • foreman-postgresql-1.13.1-1.el7.noarch
  • foreman-proxy-1.13.1-1.el7.noarch
  • foreman-rackspace-1.13.1-1.el7.noarch
  • foreman-selinux-1.13.1-1.el7.noarch
  • foreman-vmware-1.13.1-1.el7.noarch
  • katello-3.2.0-3.rc3.el7.noarch
  • katello-certs-tools-2.4.0-1.el7sat.noarch
  • katello-client-bootstrap-1.1.0-2.el7sat.noarch
  • katello-common-3.2.0-3.rc3.el7.noarch
  • katello-debug-3.2.0-3.rc3.el7.noarch
  • katello-default-ca-1.0-1.noarch
  • katello-installer-base-3.2.0-3.rc4.el7.noarch
  • katello-selinux-3.0.1.2-1.el7sat.noarch
  • katello-server-ca-1.0-1.noarch
  • katello-service-3.2.0-3.rc3.el7.noarch
  • openldap-2.4.40-13.el7.x86_64
  • pulp-client-1.0-1.noarch
  • pulp-docker-plugins-2.0.3-1.el7sat.noarch
  • pulp-katello-1.0.2-1.el7.noarch
  • pulp-ostree-plugins-1.1.3.1-1.el7sat.noarch
  • pulp-puppet-plugins-2.9.1-1.el7.noarch
  • pulp-puppet-tools-2.9.1-1.el7.noarch
  • pulp-rpm-plugins-2.9.1-1.el7.noarch
  • pulp-selinux-2.9.1-1.el7.noarch
  • pulp-server-2.9.1-1.el7.noarch
  • python-ldap-2.4.15-2.el7.x86_64
  • tfm-rubygem-ldap_fluff-0.4.3-1.el7sat.noarch
  • tfm-rubygem-net-ldap-0.15.0-1.el7.noarch
How reproducible:
Always
Steps to Reproduce:
1.Create two organizations - Org1 and Org2.
2.Create a repository and product in both the organizations and synchronize them.
Make sure both the repositories have some erratum.
the product name of Org1: Org1Product
the product name of Org2: Org2Product
3. Now run the cli command:
hammer erratum list --product=Org1Product
Actual results:
The command runs without errors but displays all errata info from all products repositories,
(as well as from product Org2Product repository)
Expected results:
Error: please set one of options --organization, --organization-label, --organization-id
Additional info:
1- Alternatively the following commands works fine:
hammer erratum list --product=Org1Product --organization=Org1
hammer erratum list --product=Org1Product --organization-id=751
hammer erratum list --product=Org1Product --organization-label=Org1Label
hammer erratum list --product-id=460
  1. 460 is the ID of product name Org1Product
  2. 751 is the ID of organization Org1
  3. Org1Label is the label of organization Org1
2- similar bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1180644

Associated revisions

Revision 31d103f9 (diff)
Added by Andrew Kofink over 2 years ago

Fixes #17766 - Require org opts for product name (#470)

Require organization options while listing errata if specifying a
product name.

History

#1 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Andrew Kofink
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/470 added

#2 Updated by Andrew Kofink over 2 years ago

  • Subject changed from hammer erratum list: Search with product name return all erratum to hammer erratum list: Search with product name return all erratum
  • Target version set to 151

#3 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

#4 Updated by Anonymous over 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF