Actions
Bug #27682
openhammer repository remove-content fails with Error: At least one of options --product, --product-id is required.
Status:
Assigned
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
-
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:
- hammer repository remove-content --id 46 --ids 1
Repository content removed.
Updated by Vijay Singh over 5 years ago
- Related to Tracker #27539: [Tracker] SRPM Issues added
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.
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.~~~~~~~~~
- hammer repository remove-content --id 46 --ids 1
Repository content removed.
~~~~~~~~~
Updated by Chris Roberts about 5 years ago
- Status changed from Rejected to Assigned
Actions