diff options
author | Luke Kanies <luke@madstop.com> | 2007-08-15 17:05:49 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-08-15 17:05:49 -0500 |
commit | a9539548d957304a03aa8bdc61c06793228f57c0 (patch) | |
tree | b76c00590839547be62f2c402fd958a6379b4611 /lib/puppet | |
parent | 297dabb63744f8ad468ee4bf5caa54a75754ceee (diff) | |
download | puppet-a9539548d957304a03aa8bdc61c06793228f57c0.tar.gz puppet-a9539548d957304a03aa8bdc61c06793228f57c0.tar.xz puppet-a9539548d957304a03aa8bdc61c06793228f57c0.zip |
Keeping the node names in the node object, so that they are available to the interpreter
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/network/handler/node.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/network/handler/node.rb b/lib/puppet/network/handler/node.rb index 898db7c22..cf39d630b 100644 --- a/lib/puppet/network/handler/node.rb +++ b/lib/puppet/network/handler/node.rb @@ -9,7 +9,7 @@ require 'puppet/util/instance_loader' class Puppet::Network::Handler::Node < Puppet::Network::Handler # A simplistic class for managing the node information itself. class SimpleNode - attr_accessor :name, :classes, :parameters, :environment, :source, :ipaddress + attr_accessor :name, :classes, :parameters, :environment, :source, :ipaddress, :names def initialize(name, options = {}) @name = name @@ -136,6 +136,7 @@ class Puppet::Network::Handler::Node < Puppet::Network::Handler if node node.source = @source + node.names = names # Merge the facts into the parameters. if fact_merge? |