diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-18 13:19:21 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-18 13:19:21 +0000 |
| commit | 01c880869215288a269b1f607a7c3b4707a47abf (patch) | |
| tree | d20212b46636e4fe8214adffd70b7be3f811eafa /lib/puppet/parser | |
| parent | 08650c10ae0ef84840c739f048f5c747f5df0832 (diff) | |
| download | puppet-01c880869215288a269b1f607a7c3b4707a47abf.tar.gz puppet-01c880869215288a269b1f607a7c3b4707a47abf.tar.xz puppet-01c880869215288a269b1f607a7c3b4707a47abf.zip | |
Adding a unit test for plain "nodesearch"
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1400 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/interpreter.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index 3ccbc5c41..7a595872e 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -105,6 +105,16 @@ module Puppet @nodesources << :ldap end + if hash[:NodeSources] + hash[:NodeSources].each do |src| + if respond_to? "nodesearch_#{src.to_s}" + @nodesources << src.to_s.intern + else + Puppet.warning "Node source '#{src}' not supported" + end + end + end + @setup = false # Set it to either the value or nil. This is currently only used |
