Convert $priority to integer before comparison

Comparison was causing an error with parser = future and stringify_facts = false. This ensures that the comparison is done between two integers
This commit is contained in:
Erik Anderson 2015-09-22 12:39:37 -06:00
parent 1860f92d29
commit 46126b9e9d

View file

@ -308,7 +308,7 @@ define nginx::resource::location (
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.')
}