diff options
author | Helen Campbell <helen@puppetlabs.com> | 2016-08-16 11:55:05 +0100 |
---|---|---|
committer | Helen Campbell <helen@puppetlabs.com> | 2016-08-17 13:49:42 +0100 |
commit | 6d185bdaa19f698270a0df4b0a0c05618864b955 (patch) | |
tree | 2d005f4664838214a4e3284e73a2060453a1216c /lib/puppet/parser/functions/validate_ipv4_address.rb | |
parent | 1d9d2c02d6669d4a6219140ae7ff3648a30c89cf (diff) |
Deprecation of ip functions
Diffstat (limited to 'lib/puppet/parser/functions/validate_ipv4_address.rb')
-rw-r--r-- | lib/puppet/parser/functions/validate_ipv4_address.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/validate_ipv4_address.rb b/lib/puppet/parser/functions/validate_ipv4_address.rb index 97faa57..fb2260c 100644 --- a/lib/puppet/parser/functions/validate_ipv4_address.rb +++ b/lib/puppet/parser/functions/validate_ipv4_address.rb @@ -18,6 +18,8 @@ module Puppet::Parser::Functions ENDHEREDOC ) do |args| + function_deprecation([:puppet_3_type_check, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ipv4. There is further documentation for validate_legacy function in the README.']) + require "ipaddr" rescuable_exceptions = [ ArgumentError ] |