antoineco / aco-tomcat

Puppet module for Tomcat
https://forge.puppet.com/aco/tomcat
Other
9 stars 26 forks source link

stdlib's 'validate' function is deprecated #63

Closed antoineco closed 7 years ago

antoineco commented 7 years ago

The validate function throws deprecation warnings since stdlib 4.13.0

Warning: This method is deprecated, please use the stdlib validate_legacy function, with Pattern[]. There is further documentation for validate_legacy function in the README.
   (at /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')
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 /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')
Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Hash. There is further documentation for validate_legacy function in the README.
   (at /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')
Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README.
   (at /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')
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 /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')
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 /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')
Warning: This method is deprecated, please use match expressions with Stdlib::Compat::String instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.
   (at /etc/puppet/code/modules/stdlib/lib/puppet/functions/deprecation.rb:19:in `deprecation')