From 2a4115c5a6dd2eeb2e93eaafa70c878bc797d3db Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 7 Dec 2010 00:26:11 +0100 Subject: convert timestamp first to a string to be sure we handle all the same way --- 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 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 -- cgit v1.2.3