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
Since this module already demands Puppet to be of version 5.5+ since release '7.0.0', the hiera_hash() in line 34 of userparameter.pp should be replaced by lookup(). E.g. like this:
It looks as if hiera_hash was used specifically to get merge behaviour. Since this can now be set in module hiera data lookup_options, I don't think we need to have an explicit call to lookup.
True, lookup() isn't strictly necessary. Though that would be the easiest fix. So far there is no hiera.yaml yet, thus this would be the first use case for it and pre-defined lookup behaviour for this module.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
include zabbix::userparameter
What are you seeing
A warning logged by the Puppet master:
What behaviour did you expect instead
No warning.
Any additional information you'd like to impart
Since this module already demands Puppet to be of version 5.5+ since release '7.0.0', the
hiera_hash()
in line 34 of userparameter.pp should be replaced bylookup()
. E.g. like this:Whether you want to apply any merge behaviour here might be debatable. But in any case, sysadmins may override that in Hiera if needed.
The text was updated successfully, but these errors were encountered: