Skip to content

Commit

Permalink
Merge pull request #689 from erikanderson/master
Browse files Browse the repository at this point in the history
Convert $priority to integer before comparison
  • Loading branch information
jfryman committed Oct 2, 2015
2 parents 1860f92 + 46126b9 commit 4515925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/resource/location.pp
Expand Up @@ -308,7 +308,7 @@
fail('$priority must be an integer.')
}
validate_array($rewrite_rules)
if ($priority < 401) or ($priority > 899) {
if (($priority + 0) < 401) or (($priority + 0) > 899) {
fail('$priority must be in the range 401-899.')
}

Expand Down

0 comments on commit 4515925

Please sign in to comment.