From 5688ea847954dc111250a0b9e7a754e88d41c7c5 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 29 Nov 2010 23:57:38 +0100 Subject: rather use last_compile than last update --- files/master/lastruncheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') diff --git a/files/master/lastruncheck b/files/master/lastruncheck index 8e31601..e0a3c47 100644 --- a/files/master/lastruncheck +++ b/files/master/lastruncheck @@ -96,7 +96,7 @@ module Puppet::Lastcheck::Tests::Storedconfigs storedconfigs_hosts.each do |host| if !facts_hosts.any?{|fact_host| fact_host[:hostname] == host.name } add_failed_host(host.name, "In storedconfigs but no facts available!") - elsif host.updated_at < (Time.now - @timeout) + elsif host.last_compile < (Time.now - @timeout) add_failed_host(host.name, "Last update in storedconfigs at #{host.updated_at}") end end -- cgit v1.2.3