Project

General

Profile

Bug #17127

hammer - attribute --content-view does not work in many subcommands of content-view filter rule

Added by Andrew Kofink over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1386726
Description of problem:
In several cases I detected problem with attribute --content-view. We get this error:

Error: Could not find organization. Some search options were missing, please see --help.
Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-0.8.0-1
How reproducible:
100%
Steps to Reproduce:
1. We have got content view (in my case test view)
> hammer content-view list
----------------|---------------------------|---------------------------|-----------|---------------------|---------------
CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS
----------------|---------------------------|---------------------------|-----------|---------------------|---------------
2 | test view | test_view | | 2016/10/19 12:35:48 | 2
1 | Default Organization View | Default_Organization_View | | 2016/10/17 10:02:42 |
----------------|---------------------------|---------------------------|-----------|---------------------|---------------
2. Create filter
> hammer content-view filter create --content-view "test view" --name "test" --inclusion=false --type=rpm --organization="Default Organization"
Filter created
3. list rules
> hammer content-view filter rule list --content-view "test view" --content-view-filter "test"
Error: Could not find organization. Some search options were missing, please see --help.
> hammer content-view filter rule list --content-view-id 2 --content-view-filter "test" 
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------
RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------
4. the same error we get for creating or deleting rule.
> hammer content-view filter rule create --content-view "test view" --content-view-filter "test" --name="c"
> hammer content-view filter rule delete --content-view "test view" --content-view-filter "test" --name "c"

Associated revisions

Revision 153cbf2c (diff)
Added by Andrew Kofink over 5 years ago

Fixes #17127 - Add org options to CV rule cmds (#464)

Add organization options to all content view filter rule commands

History

#1 Updated by Andrew Kofink over 5 years ago

  • Subject changed from hammer - attribute --content-view does not work in many subcommands of content-view filter rule to hammer - attribute --content-view does not work in many subcommands of content-view filter rule
  • Target version set to 133

#2 Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Andrew Kofink
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/464 added

#3 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) set to 197

#4 Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by The Foreman Bot over 5 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/469 added

Also available in: Atom PDF