Project

General

Profile

Bug #3830

os list does not work with ruby 1.8.7

Added by Martin Bacovsky over 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

[root@toni-foreman]# hammer -v os list
[ERROR 2013-12-06 07:22:16 Exception] Error: Symbol as array index
Error: Symbol as array index
[ERROR 2013-12-06 07:22:16 Exception]

TypeError (Symbol as array index):
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.12/lib/hammer_cli_foreman/output/formatters.rb:12:in `[]'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.12/lib/hammer_cli_foreman/output/formatters.rb:12:in `format'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/output/formatters.rb:62:in `format'
/usr/lib/ruby/gems/1.8/gems/logging-1.8.1/lib/logging/logger.rb:435:in `inject'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/output/formatters.rb:62:in `each'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/output/formatters.rb:62:in `inject'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/output/formatters.rb:62:in `format'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:220:in `apply_formatters'
/usr/lib/ruby/gems/1.8/gems/logging-1.8.1/lib/logging/logger.rb:435:in `inject'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:219:in `each'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:219:in `inject'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:219:in `apply_formatters'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:175:in `format'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:175:in `collect'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:175:in `format'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:115:in `format'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:115:in `collect'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print/row_group.rb:115:in `format'
/usr/lib/ruby/gems/1.8/gems/table_print-1.1.5/lib/table_print.rb:42:in `table_print'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/output/adapter/table.rb:34:in `print_collection'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/output/output.rb:27:in `print_collection'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/abstract.rb:130:in `print_collection'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/./apipie/read_command.rb:21:in `print_data'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/./apipie/read_command.rb:10:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/abstract.rb:24:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/abstract.rb:24:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/abstract.rb:24:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/lib/hammer_cli/main.rb:43:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.12/bin/hammer:62
/usr/bin/hammer:19:in `load'
/usr/bin/hammer:19

It is comaptibility issue with select function http://stackoverflow.com/questions/12521154/ruby-make-1-8-hashselect-behave-like-1-9-hashselect

Associated revisions

Revision a5e2403d (diff)
Added by Martin Bacovsky over 5 years ago

Fixed #3830 - os list fails on ruby < 1.9

Revision 2269f7aa
Added by mbacovsky over 5 years ago

Merge pull request #54 from mbacovsky/3830_os_list

Fixed #3830 - os list fails on ruby < 1.9

History

#2 Updated by Martin Bacovsky over 5 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Martin Bacovsky over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli-foreman|commit:a5e2403d254642691e8aa0e91524149d9dd23d01.

Also available in: Atom PDF