Project

General

Profile

Bug #23980

Updated by Jonathon Turel almost 6 years ago

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1541178  

 - *Description of problem:* 
 when trying to get the output of hammer commands in a tabular format, the following error message is seen :- 

 # hammer --output table sync-plan info --id 3 
 ---|---------------------------|---------------------|----------|---------|--------------------------------------------|---------------------|-------------------- 
 ID | NAME                        | START DATE            | INTERVAL | ENABLED | DESCRIPTION                                  | CREATED AT            | UPDATED AT 
 ---|---------------------------|---------------------|----------|---------|--------------------------------------------|---------------------|-------------------- 
 3    | custom 3rd party reposync | 2017/12/11 19:15:00 | daily      | no        | some custom 3rd party repositories to sync | 2017/11/15 14:15:58 | 2017/12/08 11:45:46 
 ---|---------------------------|---------------------|----------|---------|--------------------------------------------|---------------------|-------------------- 

 Error: undefined method `meta' for #<Array:0x00000002591cb0> 

 This message does not appear when using any other output format, other than table. 


 - *Version-Release number of selected component (if applicable):* 
 Katello 3.4.0 Satellite 6.2.12 

 - *How reproducible:* 
 Always 

 - *Steps to Reproduce:* 
 1. Execute any hammer command with --output table option. 
 # hammer --output table sync-plan info --id 3 

 - *Actual results:* 
 Error message "Error: undefined method `meta' for #<Array:0x00000002591cb0>" is seen. 

 - *Expected results:* 
 No error message should be seen  

 *Additional info:*

Back