Actions
Bug #17127
closedhammer - attribute --content-view does not work in many subcommands of content-view filter rule
Difficulty:
Triaged:
Bugzilla link:
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