Project

General

Profile

Bug #3352

ArgumentError (interning empty string) on "hammer host info"

Added by Dominic Cleal over 6 years ago. Updated almost 2 years 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:
In Kanboard:

Description

foreman-1.3.9999-3.201310161214git8f6ad8a.el6.noarch
rubygem-hammer_cli_foreman-0.0.7-1.el6.noarch
rubygem-hammer_cli-0.0.7-1.el6.noarch

[root@foreman ~]# hammer -v host info --name f19a.fm.example.net
[ INFO 2013-10-18 08:46:38 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded
[ INFO 2013-10-18 08:46:39 Init] Extension module hammer_cli_foreman loaded
[ INFO 2013-10-18 08:46:39 HammerCLI::MainCommand] Called with options: {"verbose"=>true}
[ INFO 2013-10-18 08:46:39 HammerCLIForeman::Host] Called with options: {}
[ INFO 2013-10-18 08:46:39 HammerCLIForeman::Host::InfoCommand] Called with options: {"name"=>"f19a.fm.example.net"}
[DEBUG 2013-10-18 08:46:39 HammerCLIForeman::Host::InfoCommand] Retrieved data: 
{
  "host"       => {
    "serial"              => nil,
    "last_freshcheck"     => nil,
    "use_image"           => nil,
    "build"               => true,
    "domain_id"           => 1,
    "created_at"          => "2013-06-22T08:19:24Z",
    "environment_id"      => 1,
    "environment"         => {
      "name" => "production",
      "id"   => 1
    },
    "installed_at"        => "2013-07-29T16:16:34Z",
    "medium_id"           => 6,
    "name"                => "f19a.fm.example.net",
    "interfaces"          => [],
    "managed"             => true,
    "owner_type"          => "User",
    "last_report"         => "2013-07-08T08:32:08Z",
    "compute_resource_id" => 1,
    "image_file"          => "",
    "puppet_ca_proxy_id"  => 5,
    "owner_id"            => 1,
    "disk"                => "",
    "operatingsystem_id"  => 7,
    "sp_name"             => nil,
    "mac"                 => "52:54:00:f7:e5:d6",
    "updated_at"          => "2013-08-13T07:14:16Z",
    "ip"                  => "192.168.101.125",
    "id"                  => 41,
    "hostgroup_id"        => 1,
    "comment"             => "",
    "subnet_id"           => 1,
    "sp_mac"              => nil,
    "root_pass"           => "redacted",
    "puppet_status"       => 872415232,
    "source_file_id"      => nil,
    "certname"            => "f19a.fm.example.net",
    "enabled"             => true,
    "model_id"            => 1,
    "sp_subnet_id"        => nil,
    ""                    => [],
    "last_compile"        => "2013-07-08T08:02:53Z",
    "uuid"                => "bcb4c988-1227-d250-8f24-f424f37425cf",
    "sp_ip"               => nil,
    "environment_name"    => nil,
    "image_id"            => nil,
    "puppet_proxy_id"     => 5,
    "ptable_id"           => 1,
    "architecture_id"     => 1
  },
  "parameters" => []
}
[ERROR 2013-10-18 08:46:39 Exception] interning empty string
interning empty string
[ERROR 2013-10-18 08:46:39 Exception] 

ArgumentError (interning empty string):
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `to_sym'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `symbolize_hash_keys'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:108:in `inject'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `each'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `inject'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `symbolize_hash_keys'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `symbolize_hash_keys'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:108:in `inject'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `each'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `inject'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:53:in `symbolize_hash_keys'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:40:in `follow_path'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/fields.rb:34:in `get_value'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:94:in `format_value'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:40:in `render_LabeledField'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:79:in `call'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:79:in `render_field'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:16:in `print_records'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:15:in `collect'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:15:in `print_records'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:14:in `each'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/adapter/base.rb:14:in `print_records'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/output/output.rb:13:in `print_records'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/abstract.rb:89:in `print_records'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/./apipie/read_command.rb:38:in `print_data'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/lib/hammer_cli/./apipie/read_command.rb:27: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.7/lib/hammer_cli/abstract.rb:23: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.7/lib/hammer_cli/abstract.rb:23: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.7/lib/hammer_cli/abstract.rb:23:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.7/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.7/bin/hammer:62
    /usr/bin/hammer:19:in `load'
    /usr/bin/hammer:19
Id:                   [root@foreman ~]# 

Associated revisions

Revision 17ce8c63 (diff)
Added by Martin Bacovsky over 6 years ago

Fixes #3352 - interning error on empty kays

Revision 6c7eedfc
Added by mbacovsky over 6 years ago

Merge pull request #44 from mbacovsky/3352_interning

Fixes #3352 - interning error on empty kays

History

#1 Updated by Martin Bacovsky over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Martin Bacovsky
  • Target version set to 1.15.0
  • Legacy Backlogs Release (now unused) set to 1

#2 Updated by Martin Bacovsky over 6 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Martin Bacovsky over 6 years ago

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

Applied in changeset foreman:hammer-cli|commit:17ce8c638e956555f1561c2a459ccfbe860f11a7.

Also available in: Atom PDF