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:
parent
1860f92d29
commit
46126b9e9d
1 changed files with 1 additions and 1 deletions
|
@ -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.')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue