Project

General

Profile

Actions

Bug #10313

closed

hammer truncates output when interactive=false

Added by Bryan Kearney almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
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=1179361
Description of problem:
hammer truncates output if interactive=false is defined in the ui section in cli_config.yml.

The default value for "per-page" parameter (defaults to 20) which specifies how many lines should be displayed on terminal before hammer asks interactively whether to display the next page is not ignored when interactive=false. This causes the output to be truncated to per-page lines even though more lines are to be displayed t get complete output.

Per-page should be ignored when interactive: false is defined and there is no --page command line argument.

Version-Release number of selected component (if applicable):
rubygem-hammer_cli_katello-0.0.4-14.el6sat.noarch
rubygem-hammer_cli-0.1.1-12.el6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
rubygem-hammer_cli_import-0.10.4-1.3.el6sat.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. define interactive: false, default per-page: 2 in "ui:" section in cli_config.yml
2. hammer product list --organization=morganstanley
3. see truncated output

Actual results:
---|----------------------------------------------|-------------|---------------|--------------|-----------
ID | NAME | DESCRIPTION | ORGANIZATION | REPOSITORIES | SYNC STATE
---|----------------------------------------------|-------------|---------------|--------------|-----------
42 | Red Hat Software Collections for RHEL Server | | morganstanley | 0 | not_synced
35 | Red Hat Beta | | morganstanley | 0 | not_synced
---|----------------------------------------------|-------------|---------------|--------------|-----------

Expected results:
---|----------------------------------------------------------------------------------|-------------|---------------|--------------|-----------
ID | NAME | DESCRIPTION | ORGANIZATION | REPOSITORIES | SYNC STATE
---|----------------------------------------------------------------------------------|-------------|---------------|--------------|-----------
42 | Red Hat Software Collections for RHEL Server | | morganstanley | 0 | not_synced
35 | Red Hat Beta | | morganstanley | 0 | not_synced
48 | Red Hat Enterprise Linux Atomic Host Beta | | morganstanley | 0 | not_synced
52 | Red Hat Developer Toolset for RHEL Server EUS | | morganstanley | 0 | not_synced
55 | Red Hat Enterprise Linux Scalable File System for RHEL Server - Extended Upda... | | morganstanley | 0 | not_synced
58 | Red Hat Enterprise Linux High Availability for RHEL Server | | morganstanley | 0 | not_synced
62 | Red Hat Developer Toolset for RHEL Server | | morganstanley | 0 | not_synced
46 | Red Hat Enterprise Linux Scalable File System for RHEL Server | | morganstanley | 0 | not_synced
39 | Red Hat Enterprise Linux Server - Extended Update Support | | morganstanley | 0 | not_synced
40 | Oracle Java for RHEL Server - Extended Update Support | | morganstanley | 0 | not_synced
43 | Red Hat Enterprise Virtualization | | morganstanley | 0 | not_synced
36 | Oracle Java for RHEL Server | | morganstanley | 0 | not_synced
49 | Red Hat Enterprise Linux High Availability for RHEL Server - Extended Update ... | | morganstanley | 0 | not_synced
50 | MRG Realtime | | morganstanley | 0 | not_synced
53 | Red Hat Enterprise Linux High Performance Networking for RHEL Server - Extend... | | morganstanley | 0 | not_synced
56 | Red Hat Enterprise Linux Load Balancer for RHEL Server - Extended Update Support | | morganstanley | 0 | not_synced
59 | Red Hat Enterprise Linux Atomic Host | | morganstanley | 0 | not_synced
60 | Red Hat Enterprise Linux Load Balancer for RHEL Server | | morganstanley | 0 | not_synced
44 | Red Hat Software Collections Beta for RHEL Server | | morganstanley | 0 | not_synced
41 | JBoss Enterprise Application Platform | | morganstanley | 0 | not_synced
47 | Red Hat Enterprise Linux Resilient Storage for RHEL Server - Extended Update ... | | morganstanley | 0 | not_synced
51 | Red Hat Container Images Beta | | morganstanley | 0 | not_synced
54 | Red Hat Enterprise Linux Resilient Storage for RHEL Server | | morganstanley | 0 | not_synced
57 | Red Hat Container Images | | morganstanley | 0 | not_synced
61 | Red Hat Enterprise Linux High Performance Networking for RHEL Server | | morganstanley | 0 | not_synced
37 | Red Hat Enterprise Linux Server | | morganstanley | 3 | finished
64 | Quattor | | morganstanley | 2 | finished
---|----------------------------------------------------------------------------------|-------------|---------------|--------------|-----------

Additional info:
It is very inconvenient to have the output truncated in interactive: false mode. Especially when there is no --page parameter specified on hammer commandline. In such case hammer should provide full output.


Related issues 1 (0 open1 closed)

Is duplicate of Hammer CLI - Feature #3898: Pagination should be turned off by default in --csv modeDuplicate12/17/2013Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Is duplicate of Feature #3898: Pagination should be turned off by default in --csv mode added
Actions #2

Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Duplicate

Covered already under #3898 + related.

Actions

Also available in: Atom PDF