variables should not be substituted in message

Using $priority meant it would be substituted with the value of the
parameter when it should be shown as static text.
This commit is contained in:
Matthew Haughton 2014-01-07 21:09:23 -05:00
Родитель d1e1e509fd
Коммит 5756568f21
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -132,10 +132,10 @@ define nginx::resource::location (
validate_array($index_files)
if !is_integer($priority) {
fail("$priority must be an integer.")
fail('$priority must be an integer.')
}
if ($priority < 401) or ($priority > 599) {
fail("$priority must be in the range 401-599. It was set to ${priority}.")
fail('$priority must be in the range 401-599.')
}
# # Shared Variables