summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node_source/none.rb
diff options
context:
space:
mode:
authorJeffrey J McCune <jeff.mccune@northstarlabs.net>2007-08-15 15:52:27 -0400
committerJeffrey J McCune <jeff.mccune@northstarlabs.net>2007-08-15 15:52:27 -0400
commit7d09d4624dd1d4d69cf5acd355762503e9cb448c (patch)
tree1a306f28c07992195c56fe581ea5494d6d6c8971 /lib/puppet/node_source/none.rb
parentfb4ab97580f40d664e76aa7107e58d16097570b8 (diff)
parentaabad8e1e262fb2f63fa4eef0f0e6fc00cc4b01f (diff)
downloadpuppet-7d09d4624dd1d4d69cf5acd355762503e9cb448c.tar.gz
puppet-7d09d4624dd1d4d69cf5acd355762503e9cb448c.tar.xz
puppet-7d09d4624dd1d4d69cf5acd355762503e9cb448c.zip
Merge commit 'aabad8e'
Diffstat (limited to 'lib/puppet/node_source/none.rb')
-rw-r--r--lib/puppet/node_source/none.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/node_source/none.rb b/lib/puppet/node_source/none.rb
new file mode 100644
index 000000000..ce188add5
--- /dev/null
+++ b/lib/puppet/node_source/none.rb
@@ -0,0 +1,10 @@
+Puppet::Network::Handler::Node.newnode_source(:none, :fact_merge => true) do
+ desc "Always return an empty node object. This is the node source you should
+ use when you don't have some other, functional source you want to use,
+ as the compiler will not work without this node information."
+
+ # Just return an empty node.
+ def nodesearch(name)
+ newnode(name)
+ end
+end