Actions
Bug #16307
openunable to modify repos with hammer without --product-id
Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
-
Description
If you specify a product with the product's name instead of ID, it will fail. For example, after creating a product "AA" and adding a single yum repo named 'ee':
$ hammer --username admin --password changeme repository update --name ee --product 'AA' --download-policy 'on_demand' Could not update the repository: Error: Could not find organization. Some search options were missing, please see --help.
However, specifying the organization fails:
$ hammer --username admin --password changeme repository update --name ee --product 'AA' --download-policy 'on_demand' --organization-id 1 Could not update the repository: Error: Unrecognised option '--organization-id'
Actions