Skip to content

Commit

Permalink
Merge pull request #368 from mhaskel/future_parser
Browse files Browse the repository at this point in the history
Fix for future parser support
  • Loading branch information
hunner committed Oct 3, 2014
2 parents 873e494 + c41e71d commit 4b66a64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/update.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
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
Expand All @@ -32,6 +34,8 @@
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
Expand All @@ -41,6 +45,7 @@
default: {
#catches 'recluctantly', and any other value (which should not occur).
#do nothing.
$_kick_apt = false
}
}
}
Expand Down

0 comments on commit 4b66a64

Please sign in to comment.