Project

General

Profile

Bug #2617

Can't edit a host once it's created

Added by Patrick Cable almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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.

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

Associated revisions

Revision 31b0ec6e (diff)
Added by Amos Benari almost 6 years ago

fixes #2617 Can't edit a host once it's created

Revision b9b0906f (diff)
Added by Amos Benari almost 6 years ago

fixes #2617 Can't edit a host once it's created
(cherry picked from commit 31b0ec6e23eea12ec76e25c1082174ebe83fd965)

History

#1 Updated by Greg Sutcliffe almost 6 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?

#2 Updated by Amos Benari almost 6 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Patrick Cable almost 6 years ago

Yep, that fixes the problem. Thanks!

#4 Updated by Amos Benari almost 6 years ago

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

Also available in: Atom PDF