Project

General

Profile

Actions

Bug #18702

closed

`hammer package list --product-id 1` returns all packages for all products

Added by Brad Buckingham over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1422552

Description of problem:
The `--product-id` flag in `hammer package list` command does not filter the search by product.

Version-Release number of selected component (if applicable):
6.2.7

How reproducible:
Always

Steps to Reproduce:
1. Create or sync some products
2. Run `hammer package list --product-id 1` for a single product ID

Actual results:
All packages are returned.

Expected results:
The API endpoint katello/api/v2/repositories/:id/packages is used, or a new API endpoint, katello/api/v2/products/:id/packages is used to return filtered results.

Actions

Also available in: Atom PDF