From f700886c55273330a01c38c20365d347b8c10d4a Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sat, 15 Oct 2011 16:25:10 +0200 Subject: Fix lastruncheck. Patch by pietro. --- files/master/lastruncheck | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files') 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}") -- cgit v1.2.3