Project

General

Profile

Actions

Bug #27682

open

hammer repository remove-content fails with Error: At least one of options --product, --product-id is required.

Added by Vijay Singh over 5 years ago. Updated about 5 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

hammer repository remove-content fails with Error: At least one of options --product, --product-id is required.

Steps:

1. Create a yum repo and upload some content rpm/srpm in it
2. Try to remove the content using repository name as below and it fails:

 # hammer repository remove-content --name repo1 --ids 1
  Could not remove content:
  Error: At least one of options --product, --product-id is required.

Expected result:

Able to remove the content using repo name

Other:

Same can delete by using repo id as below:
  1. hammer repository remove-content --id 46 --ids 1
    Repository content removed.

Related issues 1 (1 open0 closed)

Related to Katello - Tracker #27539: [Tracker] SRPM IssuesNew

Actions
Actions #1

Updated by Vijay Singh over 5 years ago

Actions #2

Updated by James Jeffers about 5 years ago

  • Status changed from New to Rejected
  • Triaged changed from No to Yes

Repository names are only unique within a product, so a product name is required.

Actions #3

Updated by Vijay Singh about 5 years ago

Hi James Jeffers,

If that is expected a behaviour then how same is working using repo id and without product id/name ?

i.e.
~~~~~~~~~
  1. hammer repository remove-content --id 46 --ids 1
    Repository content removed.
    ~~~~~~~~~
Actions #4

Updated by Chris Roberts about 5 years ago

  • Status changed from Rejected to Assigned
Actions

Also available in: Atom PDF