Project

General

Profile

Bug #7699

compute resource info Error: can't convert nil into Array

Added by Bryan Kearney almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1129262
Description of problem:

cannot get Ovirt, GCE, Openstack compute-resource info

(# hammer -p changeme compute-resource create --name rhev-cr2 --provider Ovirt --url https://localhost --user user --password testing)

  1. hammer -v compute-resource info --name rhev-cr2

[ERROR 2014-08-12 08:15:02 Exception] Error: can't convert nil into Array
Error: can't convert nil into Array
[ERROR 2014-08-12 08:15:02 Exception]

TypeError (can't convert nil into Array):
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.1/lib/hammer_cli_foreman/compute_resource.rb:52:in `concat'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.1/lib/hammer_cli_foreman/compute_resource.rb:52:in `print_data'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/command.rb:34: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.1.1/lib/hammer_cli/./apipie/../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.1.1/lib/hammer_cli/./apipie/../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.1.1/lib/hammer_cli/./apipie/../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.1.1/bin/hammer:102
/usr/bin/hammer:19:in `load'
/usr/bin/hammer:19

Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-6-20140806.0


Related issues

Related to Foreman - Bug #9827: compute resource info in API v2 does not send provider typeClosed2015-03-19

Associated revisions

Revision e32447aa (diff)
Added by Tomas Strachota over 7 years ago

Fixes #7699 - can't convert nil into Array in compute resouce info

Revision 844695a4
Added by mbacovsky over 7 years ago

Merge pull request #172 from tstrachota/compute_resource_info_7699

Fixes #7699 - can't convert nil into Array in compute resouce info

History

#1 Updated by Dominic Cleal over 7 years ago

  • Status changed from New to Resolved

Appears to work fine.

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

  • Category set to Foreman commands (obsolete)
  • Status changed from Resolved to Assigned
  • Assignee set to Tomáš Strachota

I reproduced the issue. It happens only with some provider types. Reopening.

#3 Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/172 added
  • Pull request deleted ()

#4 Updated by Tomáš Strachota over 7 years ago

  • Related to Bug #9827: compute resource info in API v2 does not send provider type added

#5 Updated by Anonymous over 7 years ago

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

Also available in: Atom PDF