Project

General

Profile

Bug #2603

Error loading VM tab on new host, undefined method `[]' for nil:NilClass

Added by Dominic Cleal almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When creating a new host, select a libvirt compute resource as the first action and the Virtual Machine tab will fail to load:

NoMethodError - undefined method `[]' for nil:NilClass:
  app/views/compute_resources_vms/form/_libvirt.html.erb:30:in `_app_views_compute_resources_vms_form__libvirt_html_erb__1886783418346172016_70035848515480'
  actionpack (3.2.13) lib/action_view/template.rb:145:in `block in render'

If you select an EC2 CR first, the compute_attributes params get loaded and then loading the libvirt pane works.

Associated revisions

Revision 446fce67 (diff)
Added by Dominic Cleal almost 6 years ago

fixes #2603 - handle missing compute_resources param loading VM tab

Revision b54b0ca8 (diff)
Added by Dominic Cleal almost 6 years ago

fixes #2603 - handle missing compute_resources param loading VM tab
(cherry picked from commit 446fce677185cde7215c602a0e476f3692e36ad4)

History

#1 Updated by Dominic Cleal almost 6 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Dominic Cleal almost 6 years ago

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

Also available in: Atom PDF