Skip to content

Commit

Permalink
Convert $priority to integer before comparison
Browse files Browse the repository at this point in the history
Comparison was causing an error with parser = future and stringify_facts = false. This ensures that the comparison is done between two integers
  • Loading branch information
erikanderson committed Sep 22, 2015
1 parent 1860f92 commit 46126b9
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 46126b9

Please sign in to comment.