Bug 1727685 - Remove --repositories flag from hammer content-view update
Summary: Remove --repositories flag from hammer content-view update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.6.0
Assignee: Swetha Seelam
QA Contact: Peter Dragun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-08 03:42 UTC by Partha Aji
Modified: 2023-09-14 05:31 UTC (History)
2 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_katello-0.18.0.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:48:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27523 0 Normal Closed Remove --repositories flag from hammer content-view update 2020-01-17 15:52:30 UTC

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


Note You need to log in before you can comment on or make changes to this bug.