Bug 1727685

Summary: Remove --repositories flag from hammer content-view update
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: Hammer - ContentAssignee: Swetha Seelam <sseelaml>
Status: CLOSED ERRATA QA Contact: Peter Dragun <pdragun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, ofedoren
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_katello-0.18.0.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:48:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Partha Aji 2019-07-08 03:42:44 UTC
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 )

Comment 3 Oleh Fedorenko 2019-07-08 09:49:36 UTC
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.

Comment 4 Partha Aji 2019-08-05 19:13:47 UTC
Connecting redmine issue https://projects.theforeman.org/issues/27523 from this bug

Comment 5 Bryan Kearney 2019-08-15 16:02:57 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27523 has been resolved.

Comment 7 Peter Dragun 2019-08-29 09:57:52 UTC
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'.

Comment 8 Bryan Kearney 2019-10-22 19:48:47 UTC
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

Comment 9 Red Hat Bugzilla 2023-09-14 05:31:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days