summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-20 15:24:20 -0500
committerLuke Kanies <luke@madstop.com>2007-09-20 15:24:20 -0500
commit8212f88ce3ad2ddbc7e1e713111d9478171c42b8 (patch)
tree5c61cfd3ca2b76d9ab093feeee89c351796667e0 /lib/puppet/indirector/node
parent4cde0344b50084b897792ba4cdd1f62a733d7f53 (diff)
downloadpuppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.tar.gz
puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.tar.xz
puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.zip
Fixing all existing spec tests so that they now
pass given the redesign that Rick implemented. This was mostly a question of fixing the method names and the mocks.
Diffstat (limited to 'lib/puppet/indirector/node')
-rw-r--r--lib/puppet/indirector/node/external.rb2
-rw-r--r--lib/puppet/indirector/node/ldap.rb2
-rw-r--r--lib/puppet/indirector/node/none.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/indirector/node/external.rb b/lib/puppet/indirector/node/external.rb
index 13cd265fb..66aca6048 100644
--- a/lib/puppet/indirector/node/external.rb
+++ b/lib/puppet/indirector/node/external.rb
@@ -11,7 +11,7 @@ Puppet::Indirector.register_terminus :node, :external do
end
# Look for external node definitions.
- def get(name)
+ def find(name)
unless Puppet[:external_nodes] != "none"
raise ArgumentError, "You must set the 'external_nodes' parameter to use the external node source"
end
diff --git a/lib/puppet/indirector/node/ldap.rb b/lib/puppet/indirector/node/ldap.rb
index fb60cad31..230ca2467 100644
--- a/lib/puppet/indirector/node/ldap.rb
+++ b/lib/puppet/indirector/node/ldap.rb
@@ -2,7 +2,7 @@ Puppet::Indirector.register_terminus :node, :ldap do
desc "Search in LDAP for node configuration information."
# Look for our node in ldap.
- def get(name)
+ def find(name)
unless ary = ldapsearch(name)
return nil
end
diff --git a/lib/puppet/indirector/node/none.rb b/lib/puppet/indirector/node/none.rb
index 2b326968e..034c0b349 100644
--- a/lib/puppet/indirector/node/none.rb
+++ b/lib/puppet/indirector/node/none.rb
@@ -6,7 +6,7 @@ Puppet::Indirector.register_terminus :node, :none do
as the compiler will not work without this node information."
# Just return an empty node.
- def get(name)
+ def find(name)
node = Puppet::Node.new(name)
node.fact_merge
node