Project

General

Profile

Actions

Bug #2617

closed

Can't edit a host once it's created

Added by Patrick Cable over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

fulldebug.txt fulldebug.txt 33.9 KB Patrick Cable, 06/04/2013 05:15 PM
dirsrv-module.txt dirsrv-module.txt 1.98 KB Patrick Cable, 06/04/2013 05:15 PM
Actions

Also available in: Atom PDF