summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-12-07 00:26:11 +0100
committermh <mh@immerda.ch>2010-12-07 00:26:11 +0100
commit2a4115c5a6dd2eeb2e93eaafa70c878bc797d3db (patch)
treec22e861ea624ca13bb687a56563a85fd89f52db4 /files
parentf45cb83e525f85234c13f7903cfcd533e0fc8e6e (diff)
convert timestamp first to a string to be sure we handle all the same way
Diffstat (limited to 'files')
-rw-r--r--files/master/lastruncheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/master/lastruncheck b/files/master/lastruncheck
index 79ccfeb..420730f 100644
--- a/files/master/lastruncheck
+++ b/files/master/lastruncheck
@@ -82,7 +82,7 @@ module Puppet::Lastcheck::Tests::TimedOutFacts
include Puppet::Lastcheck::Tests::Util
def analyze_timed_out_facts
require 'time'
- facts_hosts.each{|host| add_failed_host(host[:hostname], "Last facts save at #{host[:timestamp]}") if Time.parse(host[:timestamp]) < (Time.now - @timeout) }
+ facts_hosts.each{|host| add_failed_host(host[:hostname], "Last facts save at #{host[:timestamp]}") if Time.parse(host[:timestamp].to_s) < (Time.now - @timeout) }
end
def setup_timed_out_facts