Description of problem: hammer content-view update provides a "--repositories" flag where by one can pass in multiple repository names. Repository names however are scoped by the product they belong to. Repository with the same name can belong to multiple products. Moreover hammer does not have a way to specify multiple key value pairs via the command line. In short we need to remove --repositories flag from this call. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1546021 Version-Release number of selected component (if applicable): 6.2+ How reproducible: always Steps to Reproduce: 1. hammer content-view update --help Expected: No --repositories flag Actual: --repositories flag with very limited use case (only repos belonging to one product can be set for the content view )
You said "Moreover hammer does not have a way to specify multiple key value pairs via the command line.". Have you tried JSON input? The possibility to use JSON instead of key-value pairs has been recently added, so maybe it will help.
Connecting redmine issue https://projects.theforeman.org/issues/27523 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27523 has been resolved.
Verified on Sat 6.6 snap 17. 'hammer content-view update --help' does not contain option '--repositories'. When using this option, error for unrecognized option is shown as expected. Same applies to 'hammer content-view create'.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3172
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days