diff options
| author | Luke Kanies <luke@madstop.com> | 2007-09-20 15:24:20 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-09-20 15:24:20 -0500 |
| commit | 8212f88ce3ad2ddbc7e1e713111d9478171c42b8 (patch) | |
| tree | 5c61cfd3ca2b76d9ab093feeee89c351796667e0 /lib/puppet/node | |
| parent | 4cde0344b50084b897792ba4cdd1f62a733d7f53 (diff) | |
| download | puppet-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/node')
| -rw-r--r-- | lib/puppet/node/searching.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/node/searching.rb b/lib/puppet/node/searching.rb index 3a632d50e..10dd588ab 100644 --- a/lib/puppet/node/searching.rb +++ b/lib/puppet/node/searching.rb @@ -14,7 +14,7 @@ module Puppet::Node::Searching names = node_names(key, facts) names.each do |name| name = name.to_s if name.is_a?(Symbol) - if node = get(name) + if node = find(name) #Puppet.info "Found %s in %s" % [name, @source] break end @@ -23,7 +23,7 @@ module Puppet::Node::Searching # If they made it this far, we haven't found anything, so look for a # default node. unless node or names.include?("default") - if node = get("default") + if node = find("default") Puppet.notice "Using default node for %s" % key end end @@ -62,7 +62,7 @@ module Puppet::Node::Searching # Look up the node facts from our fact handler. def node_facts(key) - if facts = Puppet::Node::Facts.get(key) + if facts = Puppet::Node::Facts.find(key) facts.values else {} |
