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
I have just started using this module as part of a model for some future development work. I am seeing the following warnings when I run puppet apply (5.3.2):
==> puppetserver: Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README. at ["/vagrant/modules/firewalld/manifests/custom_service.pp", 45]:
==> puppetserver: (at /vagrant/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
==> puppetserver: Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README. at ["/vagrant/modules/firewalld/manifests/custom_service.pp", 54]:
==> puppetserver: (at /vagrant/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
==> puppetserver: Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_Path. There is further documentation for validate_legacy function in the README. at ["/vagrant/modules/firewalld/manifests/custom_service.pp", 62]:
==> puppetserver: (at /vagrant/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
I am calling firewalld::custom_service from my code like this:
It looks like the warnings are coming from the validate_* function calls, which have been deprecated in puppetlabs/stdlib. They don't break anything and I guess moving over to Puppet 4 data types would be a breaking change, but on the other hand if I am using firewalld on a number of hosts the amount of warnings could get a bit much.
The text was updated successfully, but these errors were encountered:
These are just deprecation warnings that will still run with Puppet 5. But, the use of validate_* is out of date now and I will replace these with proper data type hinting in the class and release a new version this week - I'm not considering this a breaking change since v3 of this module does not claim compatibiity with Puppet 3 (the base class already has data types) - thanks for pointing it out @hjohnst6 .
I have just started using this module as part of a model for some future development work. I am seeing the following warnings when I run puppet apply (5.3.2):
I am calling firewalld::custom_service from my code like this:
And my Puppetfile has:
It looks like the warnings are coming from the
validate_*
function calls, which have been deprecated inpuppetlabs/stdlib
. They don't break anything and I guess moving over to Puppet 4 data types would be a breaking change, but on the other hand if I am using firewalld on a number of hosts the amount of warnings could get a bit much.The text was updated successfully, but these errors were encountered: