summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-15 17:05:49 -0500
committerLuke Kanies <luke@madstop.com>2007-08-15 17:05:49 -0500
commita9539548d957304a03aa8bdc61c06793228f57c0 (patch)
treeb76c00590839547be62f2c402fd958a6379b4611 /lib/puppet
parent297dabb63744f8ad468ee4bf5caa54a75754ceee (diff)
downloadpuppet-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.rb3
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?