diff options
Diffstat (limited to 'lib/puppet/indirector/null/node.rb')
-rw-r--r-- | lib/puppet/indirector/null/node.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/puppet/indirector/null/node.rb b/lib/puppet/indirector/null/node.rb new file mode 100644 index 000000000..eb08f5697 --- /dev/null +++ b/lib/puppet/indirector/null/node.rb @@ -0,0 +1,14 @@ +require 'puppet/indirector/null' + +class Puppet::Indirector::Null::Node < Puppet::Indirector::Null + 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 find(name) + node = super + node.fact_merge + node + end +end |