On Jul 4, 2008, at 10:10 AM, Thom May wrote: > --- a/lib/puppet/rails/host.rb > +++ b/lib/puppet/rails/host.rb > @@ -43,6 +43,10 @@ class Puppet::Rails::Host < ActiveRecord::Base > host.ip = ip > end > > + if env = node.parameters["environment"] > + host.environment = env > + end > + > # Store the facts into the database. > host.setfacts node.parameters
They *should* always be the same, but I'd use node.environment here instead of node.parameters["environment"]. As people use external nodes more, they are more likely to deviate. -- Men never do evil so completely and cheerfully as when they do it from a religious conviction. --Blaise Pascal --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
