summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/master/lastruncheck4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/master/lastruncheck b/files/master/lastruncheck
index e0a3c47..79ccfeb 100644
--- a/files/master/lastruncheck
+++ b/files/master/lastruncheck
@@ -96,8 +96,8 @@ 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.last_compile < (Time.now - @timeout)
- add_failed_host(host.name, "Last update in storedconfigs at #{host.updated_at}")
+ elsif host.last_compile.nil? || host.last_compile < (Time.now - @timeout)
+ add_failed_host(host.name, "Last compile time in storedconfigs at #{host.last_compile}")
end
end
end