From 6edf6d38b6e96222aa6a9c5f7aae245657e99413 Mon Sep 17 00:00:00 2001 From: Lukas Koranda Date: Sun, 6 Nov 2016 23:01:42 +0100 Subject: [PATCH] Avoiding string comparison error Signed-off-by: Lukas Koranda --- manifests/update.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/update.pp b/manifests/update.pp index 9b1f686..4a8a7c8 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -13,7 +13,7 @@ class apt::update { #if we should kick apt_update. $daily_threshold = (strftime('%s') - 86400) if $::apt_update_last_success { - if $::apt_update_last_success < $daily_threshold { + if $::apt_update_last_success + 0 < $daily_threshold { $_kick_apt = true } else { $_kick_apt = false @@ -28,7 +28,7 @@ class apt::update { #if we should kick apt_update. $weekly_threshold = (strftime('%s') - 604800) if $::apt_update_last_success { - if ( $::apt_update_last_success < $weekly_threshold ) { + if ( $::apt_update_last_success + 0 < $weekly_threshold ) { $_kick_apt = true } else { $_kick_apt = false -- 2.32.3