Bug #12267
closedInconsistent output on hammer repository-set
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1235821
Description of problem:
Switching between tabulated and CSV output changes the ENABLED column form yes / no to true / false.
- hammer repository-set available-repositories --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 6 Server (RPMs)" --organization-id 3
------------------------------------------------------|--------|---------|--------
NAME | ARCH | RELEASE | ENABLED
------------------------------------------------------|--------|---------|--------
Red Hat Enterprise Linux 6 Server RPMs i386 6.1 | i386 | 6.1 | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.1 | x86_64 | 6.1 | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.2 | i386 | 6.2 | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.2 | x86_64 | 6.2 | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.3 | i386 | 6.3 | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.3 | x86_64 | 6.3 | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.4 | i386 | 6.4 | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.4 | x86_64 | 6.4 | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.5 | i386 | 6.5 | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.5 | x86_64 | 6.5 | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.6 | i386 | 6.6 | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.6 | x86_64 | 6.6 | no
Red Hat Enterprise Linux 6 Server RPMs i386 6Server | i386 | 6Server | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server | x86_64 | 6Server | yes
------------------------------------------------------|--------|---------|--------
VS
- hammer --csv repository-set available-repositories --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 6 Server (RPMs)" --organization-id 3
Name,Arch,Release,Enabled
Red Hat Enterprise Linux 6 Server RPMs i386 6.1,i386,6.1,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.1,x86_64,6.1,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.2,i386,6.2,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.2,x86_64,6.2,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.3,i386,6.3,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.3,x86_64,6.3,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.4,i386,6.4,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.4,x86_64,6.4,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.5,i386,6.5,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.5,x86_64,6.5,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.6,i386,6.6,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.6,x86_64,6.6,false
Red Hat Enterprise Linux 6 Server RPMs i386 6Server,i386,6Server,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server,x86_64,6Server,true
Version-Release number of selected component (if applicable):
6.1 public beta.
How reproducible:
Always.
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
Updated by Bryan Kearney almost 9 years ago
The issue here is that the translation of true to "NO" is not being done on the csv output. I am putting this bug here since I dont think it is related to the specific command.
Updated by Ori Rabin over 8 years ago
This is happening in more then one command but it's not in all commands:
I tried:
hammer sc-param list --host-id 19 -----|--------------|---------------|----------|------------- ID | PARAMETER | DEFAULT VALUE | OVERRIDE | PUPPET CLASS -----|--------------|---------------|----------|------------- 1292 | default_mods | true | true | apache 1293 | sendfile | | true | apache 1290 | serveradmin | | true | apache -----|--------------|---------------|----------|-------------
and:
hammer host info --id 19
in Additional info it returned:
Additional info:
Owner Id: 3
Owner Type: User
Enabled: yes
Comment:
but if I look at the csv output the Enabled will be true and not ye.
So either all commands that use yes/no turn into true/false or the csv output of those commands should change.
Updated by Tomáš Strachota almost 8 years ago
- Related to Tracker #14914: Tracker for output related issues added
Updated by Tomáš Strachota almost 7 years ago
- Status changed from New to Closed
According to comments in the linked bugzilla I'm closing this issue as "not a bug". The behavior is consistent across the application.