From: Morgan Haskel Date: Fri, 3 Oct 2014 23:30:33 +0000 (-0400) Subject: Fix for future parser support X-Git-Tag: 1.8.0~45^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c41e71d0c2fce83627f0e3a4de242919fbb996d3;p=puppet-modules%2Fpuppetlabs-apt.git Fix for future parser support --- diff --git a/manifests/update.pp b/manifests/update.pp index 9112c9b..8cb38b2 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -19,6 +19,8 @@ class apt::update { if $::apt_update_last_success { if $::apt_update_last_success < $daily_threshold { $_kick_apt = true + } else { + $_kick_apt = false } } else { #if apt-get update has not successfully run, we should kick apt_update @@ -32,6 +34,8 @@ class apt::update { if $::apt_update_last_success { if ( $::apt_update_last_success < $weekly_threshold ) { $_kick_apt = true + } else { + $_kick_apt = false } } else { #if apt-get update has not successfully run, we should kick apt_update @@ -41,6 +45,7 @@ class apt::update { default: { #catches 'recluctantly', and any other value (which should not occur). #do nothing. + $_kick_apt = false } } }