Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Fix parsing issue by quoting parameters that are integers. This should
Browse files Browse the repository at this point in the history
work for both old and future parser.
  • Loading branch information
Marcus Philip committed Oct 16, 2015
1 parent 200f95e commit 749a27d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/rule.pp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
}
}

case $maxage {
case "${maxage}" {
'undef': {}
/^\d+$/: {}
default: {
Expand All @@ -312,7 +312,7 @@
}
}

case $rotate {
case "${rotate}" {
'undef': {}
/^\d+$/: {}
default: {
Expand All @@ -328,15 +328,15 @@
}
}

case $shredcycles {
case "${shredcycles}" {
'undef': {}
/^\d+$/: {}
default: {
fail("Logrotate::Rule[${name}]: shredcycles must be an integer")
}
}

case $start {
case "${start}" {
'undef': {}
/^\d+$/: {}
default: {
Expand Down

0 comments on commit 749a27d

Please sign in to comment.