Bug #19749

hammer --nondefault ignores the value passed to it and always filter out "Default Organization View"

Added by Ashish Humbe 11 months ago. Updated 9 months ago.

Status:Closed
Priority:Normal
Assigned To:Ashish Humbe
Category:Hammer
Target version:-
Difficulty: Pull request:https://github.com/Katello/katello/pull/6806
Bugzilla link:1458196
Story points-
Velocity based estimate-
ReleaseKatello 3.5.0Release relationshipAuto

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

  1. 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 | |
    ----------------|------------------|------------------|-----------|---------------
  1. 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.

Associated revisions

Revision 3438db63
Added by Ashish Humbe 9 months ago

Fixes #19749 - Hammer content-view ignores nondefault

History

#1 Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6806 added

#2 Updated by Eric Helms 11 months ago

  • Release set to Katello 3.5.0

#3 Updated by Ashish Humbe 9 months ago

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

Also available in: Atom PDF