Bug #2617
closedCan't edit a host once it's created
Description
I create a VMware host using 1.2-stable. I add a particular module that I wrote that is parameterized. Adding the module is fine, override any of the parameters is fine, but then once i go back to edit that host, I get:
NoMethodError
undefined method `[]' for nil:NilClass
app/helpers/lookup_keys_helper.rb:84:in `host_key_with_diagnostic'
app/views/puppetclasses/_class_parameters.html.erb:11:in `_app_views_puppetclasses__class_parameters_html_erb___1822180994_70099312382360'
app/views/puppetclasses/_class_parameters.html.erb:3:in `each'
app/views/puppetclasses/_class_parameters.html.erb:3:in `each_with_index'
app/views/puppetclasses/_class_parameters.html.erb:3:in `_app_views_puppetclasses__class_parameters_html_erb___1822180994_70099312382360'
app/views/puppetclasses/_classes_parameters.html.erb:12:in `_app_views_puppetclasses__classes_parameters_html_erb__521424405_70099312499500'
app/views/hosts/_form.html.erb:83:in `_app_views_hosts__form_html_erb___1066644366_70099314640420'
app/helpers/layout_helper.rb:209:in `form_for'
app/views/hosts/_form.html.erb:7:in `_app_views_hosts__form_html_erb___1066644366_70099314640420'
app/models/taxonomy.rb:55:in `as_taxonomy'
lib/foreman/thread_session.rb:140:in `as_location'
app/models/taxonomy.rb:54:in `as_taxonomy'
lib/foreman/thread_session.rb:105:in `as_org'
app/models/taxonomy.rb:53:in `as_taxonomy'
app/views/hosts/_form.html.erb:5:in `_app_views_hosts__form_html_erb___1066644366_70099314640420'
app/views/hosts/edit.html.erb:7:in `_app_views_hosts_edit_html_erb___1124867671_70099314984960'
lib/foreman/thread_session.rb:31:in `clear_thread'
Puppet module, more full debug output attached.
Files
Updated by Greg Sutcliffe over 11 years ago
- Status changed from New to Assigned
- Assignee set to Amos Benari
I tripped over this the other day - @Amos Benari, can you take a look?
Updated by Amos Benari over 11 years ago
- Status changed from Assigned to Ready For Testing
Updated by Amos Benari over 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 31b0ec6e23eea12ec76e25c1082174ebe83fd965.