Actions
Bug #19749
closedhammer --nondefault ignores the value passed to it and always filter out "Default Organization View"
Description
If we include --nondefault on the hammer command line when listing content views, the Default Organization View get removed regardless of what value passed to --nondefault
- hammer content-view list --organization-id=1 --nondefault yes
----------------|------------------|------------------|-----------|---------------
CONTENT VIEW ID | NAME | LABEL | COMPOSITE | REPOSITORY IDS
----------------|------------------|------------------|-----------|---------------
16 | test | test | | 124
33 | RHEL7tillDEC2016 | RHEL7tillDEC2016 | | 3
2 | RHEL7 | RHEL7 | | 4, 3, 62
19 | DOCKERrepos | DOCKERrepos | | 4, 3, 63
15 | CompositeView | CompositeView | true |
12 | Cartosat-2CView | Cartosat-2CView | | 1, 68, 4
6 | Atomic | Atomic | | 1, 3, 32, 33
18 | 6.7 | 6_7 | |
----------------|------------------|------------------|-----------|---------------
- hammer content-view list --organization-id=1 --nondefault no
----------------|------------------|------------------|-----------|---------------
CONTENT VIEW ID | NAME | LABEL | COMPOSITE | REPOSITORY IDS
----------------|------------------|------------------|-----------|---------------
16 | test | test | | 124
33 | RHEL7tillDEC2016 | RHEL7tillDEC2016 | | 3
2 | RHEL7 | RHEL7 | | 4, 3, 62
19 | DOCKERrepos | DOCKERrepos | | 4, 3, 63
15 | CompositeView | CompositeView | true |
12 | Cartosat-2CView | Cartosat-2CView | | 1, 68, 4
6 | Atomic | Atomic | | 1, 3, 32, 33
18 | 6.7 | 6_7 | |
----------------|------------------|------------------|-----------|---------------
Version-Release number of selected component (if applicable):
Red Hat Satellite v 6.2.9
How reproducible:
Always
Steps to Reproduce:
1. # hammer content-view list --organization-id=1
2. # hammer content-view list --organization-id=1 --nondefault 0
3. # hammer content-view list --organization-id=1 --nondefault 1
Actual results:
Always remove Default Organization View while filtering
Expected results:
When we set --nondefault No/False/0 only Default Organization View should be listed.
Actions