Project

General

Profile

Bug #3964

TypeError (can't convert String into Integer)

Added by Og Maciel 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

[root@qetello02 ~]# LANG=en_US hammer -u admin -p changeme -v global_parameter set --name='opt-b22cp06a' --value='val-n5t0qeg9xhxf o9y89ek7'
Error: can't convert String into Integer
[root@qetello02 ~]# LANG=en_US hammer -v -u admin -p changeme global_parameter set --name='opt-b22cp06a' --value='val-n5t0qeg9xhxf o9y89ek7'
[ERROR 2014-01-07 15:05:15 Exception] Error: can't convert String into Integer
Error: can't convert String into Integer
[ERROR 2014-01-07 15:05:15 Exception]

TypeError (can't convert String into Integer):
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/common_parameter.rb:44:in `[]'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/common_parameter.rb:44:in `parameter_exist?'
    /usr/lib/ruby/gems/1.8/gems/logging-1.8.1/lib/logging/logger.rb:435:in `find'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/common_parameter.rb:44:in `each'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/common_parameter.rb:44:in `find'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/common_parameter.rb:44:in `parameter_exist?'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/common_parameter.rb:34:in `action'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/commands.rb:34:in `send_request'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/./apipie/write_command.rb:10:in `execute'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/bin/hammer:61
    /usr/bin/hammer:19:in `load'
    /usr/bin/hammer:19

Environment:

  • foreman-release-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch
  • foreman-postgresql-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch
  • foreman-selinux-1.4.0-0.develop.201311220906gite342a0b.el6.noarch
  • foreman-libvirt-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch
  • foreman-proxy-1.4.0-0.develop.201401031522gitd3509e6.el6.noarch
  • rubygem-hammer_cli_foreman-0.0.15-1.el6.noarch
  • foreman-compute-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch
  • rubygem-foreman_api-0.1.9-1.el6.noarch
  • foreman-installer-1.4.0-0.develop.201401031335gitf3eee21.el6.noarch
  • foreman-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch
foreman-debug-DbYkX.tar.xz foreman-debug-DbYkX.tar.xz 81.3 KB Og Maciel, 01/07/2014 08:13 PM

Associated revisions

Revision 55f5a14c (diff)
Added by Tomas Strachota over 6 years ago

fixes #3964 - unable to set global params

Revision 8871e28d
Added by mbacovsky over 6 years ago

Merge pull request #67 from tstrachota/3964_global_params

fixes #3964 - unable to set global params

History

#1 Updated by Dominic Cleal over 6 years ago

  • Target version set to 1.9.2

#2 Updated by Tomáš Strachota over 6 years ago

  • Category set to Foreman commands (obsolete)
  • Status changed from New to Ready For Testing
  • Assignee set to Tomáš Strachota

#3 Updated by Anonymous over 6 years ago

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

Applied in changeset foreman:hammer-cli-foreman|commit:55f5a14c58a6c6cebb4cbb9ea5f419754957c93c.

#4 Updated by Og Maciel over 6 years ago

Patched my nightly build and tested it. Worked like a charm, thank you!

Also available in: Atom PDF