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"
Updated by Andrew Kofink about 8 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
Updated by The Foreman Bot about 8 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
Updated by Eric Helms about 8 years ago
- Translation missing: en.field_release set to 197
Updated by Anonymous about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|153cbf2c19864656abaf01cc5d3037e55b90f98b.
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/469 added
Actions