Bug #3830
closedos list does not work with ruby 1.8.7
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
Updated by Martin Bacovsky about 11 years ago
Updated by Martin Bacovsky about 11 years ago
- Status changed from Assigned to Ready For Testing
Updated by Martin Bacovsky about 11 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.