diff options
author | tphoney <tp@puppet.com> | 2016-08-03 17:06:25 +0100 |
---|---|---|
committer | tphoney <tp@puppet.com> | 2016-08-08 15:02:25 +0100 |
commit | 6e7e69fe203e042b28aacb01301c338d55448c5f (patch) | |
tree | 8250e2fed853d18036e9e3121454a7c1362b2064 /lib/puppet/parser/functions/is_float.rb | |
parent | 16a26f6ab40a4b1d7e6836ff6de24850f0b8fb35 (diff) |
(modules-3533) deprecation for 3.x number function
Diffstat (limited to 'lib/puppet/parser/functions/is_float.rb')
-rw-r--r-- | lib/puppet/parser/functions/is_float.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/is_float.rb b/lib/puppet/parser/functions/is_float.rb index a2da943..5233e40 100644 --- a/lib/puppet/parser/functions/is_float.rb +++ b/lib/puppet/parser/functions/is_float.rb @@ -8,6 +8,8 @@ Returns true if the variable passed to this function is a float. EOS ) do |arguments| + function_deprecation([:puppet_3_type_check, 'This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Float. There is further documentation for validate_legacy function in the README.']) + if (arguments.size != 1) then raise(Puppet::ParseError, "is_float(): Wrong number of arguments "+ "given #{arguments.size} for 1") |