Project

General

Profile

Actions

Bug #19749

closed

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

Added by Ashish Humbe almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by The Foreman Bot almost 7 years ago

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

Updated by Eric Helms almost 7 years ago

  • translation missing: en.field_release set to 250
Actions #3

Updated by Ashish Humbe over 6 years ago

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

Also available in: Atom PDF