Bug 1388642 - Can't specify organization in hammer content-view filter delete/info/list/update commands
Summary: Can't specify organization in hammer content-view filter delete/info/list/upd...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: John Mitsch
URL:
Whiteboard:
Depends On:
Blocks: 1398677
TreeView+ depends on / blocked
 
Reported: 2016-10-25 19:51 UTC by Andrii Balakhtar
Modified: 2019-09-25 21:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1398677 (view as bug list)
Environment:
Last Closed: 2018-02-21 16:44:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16794 0 None None None 2016-10-27 10:21:29 UTC

Description Andrii Balakhtar 2016-10-25 19:51:22 UTC
Description of problem:
Following content-view filter commands are missing --organization, --organization-id and --organization-label options:
content-view filter delete
content-view filter info
content-view filter list
content-view filter update

This becomes and issue when you don't have `content-view` and `content-view filter` IDs and specifying them by names, in such case organization should be specified too, e.g.:
content-view filter delete --organization="test_org" --name="test_filter" --content-view="test_cv"
Currently this command returns following error:
Error: Unrecognised option '--organization'
However, if you attempt to pass the command with no organization specified, you'll receive following error:
Could not delete the filter:
  Error: Could not find organization. Some search options were missing, please see --help.


Version-Release number of selected component (if applicable):
Satellite 6.3 Snap 5

How reproducible:
Always

Steps to Reproduce:
1. See `Description of problem`
2.
3.

Actual results:
--organization, --organization-id and --organization-label options are missing, no way to execute commands with only names (not ids) specified

Expected results:
--organization, --organization-id and --organization-label options should be accepted

Additional info:

Comment 5 Roman Plevka 2016-11-25 13:43:05 UTC
`hammer content-view delete` is affected by this as well

Comment 6 John Mitsch 2017-08-02 19:20:33 UTC
Verified in 6.3.0 snap 9

The following worked:

hammer content-view list --organization-label "Default_Organization"
hammer content-view list --organization "Default Organization"
hammer content-view list --organization-id 1

I didn't find any issues with create/info/update/delete either

Comment 7 Satellite Program 2018-02-21 16:44:36 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-2018:0336


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