Bug #7699
closedcompute resource info Error: can't convert nil into Array
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)
- 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
Updated by Dominic Cleal almost 10 years ago
- Status changed from New to Resolved
Appears to work fine.
Updated by Tomáš Strachota over 9 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.
Updated by The Foreman Bot over 9 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 (
)
Updated by Tomáš Strachota over 9 years ago
- Related to Bug #9827: compute resource info in API v2 does not send provider type added
Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|e32447aab92286d5251ace238a87ae321660363a.