summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector/catalog/compiler.rb2
-rw-r--r--lib/puppet/node.rb7
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/puppet/indirector/catalog/compiler.rb b/lib/puppet/indirector/catalog/compiler.rb
index 2b5e8d912..455a92cc7 100644
--- a/lib/puppet/indirector/catalog/compiler.rb
+++ b/lib/puppet/indirector/catalog/compiler.rb
@@ -89,7 +89,7 @@ class Puppet::Node::Catalog::Compiler < Puppet::Indirector::Code
# key = client
#end
- return nil unless node = Puppet::Node.find_by_any_name(key)
+ return nil unless node = Puppet::Node.find(key)
# Add any external data to the node.
add_node_data(node)
diff --git a/lib/puppet/node.rb b/lib/puppet/node.rb
index 75b7197fd..14d0f6ac7 100644
--- a/lib/puppet/node.rb
+++ b/lib/puppet/node.rb
@@ -13,13 +13,6 @@ class Puppet::Node
indirects :node, :terminus_setting => :node_terminus, :doc => "Where to find node information.
A node is composed of its name, its facts, and its environment."
- # Retrieve a node from the node source, with some additional munging
- # thrown in for kicks.
- def self.find_by_any_name(key)
- return nil unless key
- find(key)
- end
-
attr_accessor :name, :classes, :parameters, :source, :ipaddress
attr_reader :time