diff options
| author | Luke Kanies <luke@madstop.com> | 2007-08-15 13:55:55 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-08-15 13:55:55 -0500 |
| commit | 65559af75e3da6522f4c3e952a73d80e0040609c (patch) | |
| tree | 3a7856db465f4f796fbdad9cac5880dbce563165 /lib/puppet/node_source | |
| parent | 90a9d09cd08ec072530e2f000e9f7b65f1c41095 (diff) | |
| download | puppet-65559af75e3da6522f4c3e952a73d80e0040609c.tar.gz puppet-65559af75e3da6522f4c3e952a73d80e0040609c.tar.xz puppet-65559af75e3da6522f4c3e952a73d80e0040609c.zip | |
Adding a "none" node source, which will be the default node source and will just return an empty node.
Diffstat (limited to 'lib/puppet/node_source')
| -rw-r--r-- | lib/puppet/node_source/none.rb | 10 |
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 |
