Project

General

Profile

Actions

Bug #12267

closed

Inconsistent output on hammer repository-set

Added by Bryan Kearney over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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.

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

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


Related issues 1 (0 open1 closed)

Related to Hammer CLI - Tracker #14914: Tracker for output related issuesClosed

Actions
Actions #1

Updated by Bryan Kearney over 8 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.

Actions #2

Updated by Ori Rabin about 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.

Actions #3

Updated by Tomáš Strachota over 7 years ago

Actions #4

Updated by Tomáš Strachota over 6 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.

Actions

Also available in: Atom PDF