Project

General

Profile

Actions

Bug #23980

closed

undefined method `meta' error seen when using --output table option with hammer cli

Added by Shira Maximov over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer core
Target version:
-
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

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

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

- How reproducible:
Always

- Steps to Reproduce:
1. Execute any hammer command with --output table option.
  1. 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:

Actions #1

Updated by Shira Maximov over 6 years ago

  • Category set to Hammer
Actions #2

Updated by Jonathon Turel over 6 years ago

  • Description updated (diff)
  • Translation missing: en.field_release set to 338
Actions #3

Updated by Amit Karsale over 6 years ago

  • Project changed from Katello to Hammer CLI
  • Category deleted (Hammer)
Actions #4

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/278 added
Actions #5

Updated by Amit Karsale over 6 years ago

  • Assignee set to Amit Karsale
Actions #6

Updated by Tomáš Strachota over 6 years ago

  • Category set to Hammer core
  • Status changed from Ready For Testing to Closed
  • Translation missing: en.field_release deleted (338)
  • Pull request https://github.com/theforeman/hammer-cli/pull/256 added

This issue has been fixed as part of https://github.com/theforeman/hammer-cli/pull/256

Actions

Also available in: Atom PDF