You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting ready to upgrade from puppet 3.8 to 4.2 so we have set stringify_facts = false. Once we did that an error popped up from this module. The full error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Comparison of: String < Integer, is not possible. Caused by 'A String is not comparable to a non String'. at /modules/nginx/manifests/resource/location.pp:238:17
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
and the section in question:
$priority = 500
...
validate_array($rewrite_rules)
if ($priority < 401) or ($priority > 899) {
fail('$priority must be in the range 401-899.')
}
We are getting ready to upgrade from puppet 3.8 to 4.2 so we have set
stringify_facts = false
. Once we did that an error popped up from this module. The full error:Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Comparison of: String < Integer, is not possible. Caused by 'A String is not comparable to a non String'. at /modules/nginx/manifests/resource/location.pp:238:17
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
and the section in question:
To force puppet to see the $priority as an integer by adding zero to it:
(https://docs.puppetlabs.com/puppet/latest/reference/lang_data_number.html#converting-strings-to-numbers)
The text was updated successfully, but these errors were encountered: