summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-10-15 16:25:10 +0200
committerMicah Anderson <micah@riseup.net>2012-02-15 12:09:11 -0500
commitf700886c55273330a01c38c20365d347b8c10d4a (patch)
treeeaeca140c777277476202ac7da829d136d2a305e /files
parent1b1a1cd8b16ad75df959c1764c4d186407f26484 (diff)
Fix lastruncheck.
Patch by pietro.
Diffstat (limited to 'files')
-rw-r--r--files/master/lastruncheck6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/master/lastruncheck b/files/master/lastruncheck
index 149c655..d59e489 100644
--- a/files/master/lastruncheck
+++ b/files/master/lastruncheck
@@ -23,8 +23,8 @@ module Puppet::Lastcheck
def facts_hosts
return @facts_hosts if @facts_hosts
require 'puppet/indirector/facts/yaml'
- @facts_hosts = Puppet::Node::Facts.search("*").collect do |fqdn|
- if node = Puppet::Node::Facts.find(fqdn)
+ @facts_hosts = Puppet::Node::Facts.indirection.search("*").collect do |fqdn|
+ if node = Puppet::Node::Facts.indirection.find(fqdn)
{ :hostname => node.name, :expired => node.expired?, :timestamp => node.values[:_timestamp], :expiration => node.expiration }
end
end.compact
@@ -190,7 +190,7 @@ class Puppet::Application::Lastcheck < Puppet::Application
exit(Puppet.settings.print_configs ? 0 : 1) if Puppet.settings.print_configs?
#Puppet::Util::Log.newdestination :console
- Puppet::Node::Facts.terminus_class = :yaml
+ Puppet::Node::Facts.indirection.terminus_class = :yaml
Puppet::Lastcheck::Tests.tests.keys.each do |test|
self.send("ignore_#{test}=", Puppet::Lastcheck::Tests.tests[test][:ignore_by_default]||false) unless self.send("ignore_#{test}")