summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-02-20 13:13:37 +0100
committermh <mh@immerda.ch>2011-02-20 13:13:37 +0100
commit7ea9ad17cab2544875d4934a90522dd74f0b6396 (patch)
tree22c5612a141a9d08236d2b96cd493603fc42c868 /files
parent2a4115c5a6dd2eeb2e93eaafa70c878bc797d3db (diff)
treat case where host is not in stored configs so far
Diffstat (limited to 'files')
-rw-r--r--files/master/lastruncheck4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/master/lastruncheck b/files/master/lastruncheck
index 420730f..babe74f 100644
--- a/files/master/lastruncheck
+++ b/files/master/lastruncheck
@@ -96,7 +96,9 @@ 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.nil? || host.last_compile < (Time.now - @timeout)
+ elsif host.last_compile.nil?
+ add_failed_host(host.name, "No entry in storedconfigs")
+ elsif host.last_compile < (Time.now - @timeout)
add_failed_host(host.name, "Last compile time in storedconfigs at #{host.last_compile}")
end
end