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_ip_address.rb | |
parent | 1d9d2c02d6669d4a6219140ae7ff3648a30c89cf (diff) |
Deprecation of ip functions
Diffstat (limited to 'lib/puppet/parser/functions/validate_ip_address.rb')
-rw-r--r-- | lib/puppet/parser/functions/validate_ip_address.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/validate_ip_address.rb b/lib/puppet/parser/functions/validate_ip_address.rb index 64fbd75..3377c76 100644 --- a/lib/puppet/parser/functions/validate_ip_address.rb +++ b/lib/puppet/parser/functions/validate_ip_address.rb @@ -23,6 +23,8 @@ module Puppet::Parser::Functions require "ipaddr" rescuable_exceptions = [ ArgumentError ] + function_deprecation([:puppet_3_type_check, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Ip_address. There is further documentation for validate_legacy function in the README.']) + if defined?(IPAddr::InvalidAddressError) rescuable_exceptions << IPAddr::InvalidAddressError end |