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 about 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

Also available in: Atom PDF