diff options
author | stephen <stephen@puppetlabs.com> | 2013-01-03 14:02:58 +0000 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2013-01-03 13:37:55 -0800 |
commit | b86f5dc1293ad431581afbb8f294560f3cf34d43 (patch) | |
tree | 32c39211e131e76f0712d09d01117f7af0ef97ff /lib | |
parent | 190b9438c58eab2322bdf216be1aaae109d14072 (diff) | |
download | puppet-stdlib-b86f5dc1293ad431581afbb8f294560f3cf34d43.tar.gz puppet-stdlib-b86f5dc1293ad431581afbb8f294560f3cf34d43.tar.bz2 |
Add test/validation for is_integer if created from an arithmetical operation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/functions/is_integer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/is_integer.rb b/lib/puppet/parser/functions/is_integer.rb index 8ee34f6..6b29e98 100644 --- a/lib/puppet/parser/functions/is_integer.rb +++ b/lib/puppet/parser/functions/is_integer.rb @@ -15,7 +15,7 @@ Returns true if the variable returned to this string is an integer. value = arguments[0] - if value != value.to_i.to_s then + if value != value.to_i.to_s and !value.is_a? Fixnum then return false else return true |