Project

General

Profile

Actions

Bug #17127

closed

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

Added by Andrew Kofink over 7 years ago. Updated almost 6 years ago.

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

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"
Actions #1

Updated by Andrew Kofink over 7 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
Actions #2

Updated by The Foreman Bot over 7 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
Actions #3

Updated by Eric Helms over 7 years ago

  • translation missing: en.field_release set to 197
Actions #4

Updated by Anonymous over 7 years ago

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

Updated by The Foreman Bot over 7 years ago

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

Also available in: Atom PDF