From: Lukas Koranda Date: Sun, 6 Nov 2016 22:01:42 +0000 (+0100) Subject: Avoiding string comparison error X-Git-Tag: 2.4.0~15^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6edf6d38b6e96222aa6a9c5f7aae245657e99413;hp=a07fc5ef771b3647a03e64102892a233ee839c44;p=puppet-modules%2Fpuppetlabs-apt.git Avoiding string comparison error Signed-off-by: Lukas Koranda --- 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