summaryrefslogtreecommitdiff
path: root/lib/puppet/functions
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2017-09-25 09:55:20 +0100
committerGitHub <noreply@github.com>2017-09-25 09:55:20 +0100
commitff6345584eabe1b7ad8836e7c9333ee4519b551a (patch)
tree7cb55daa08f8ebcb7cfc300187859594ec0dda1e /lib/puppet/functions
parente66f7aa1ba49fef4296d977b471a1def38c1df5c (diff)
parent2220810c4ad8ea22b2cdc58bc0b9c7392a388b01 (diff)
Merge pull request #777 from alexjfisher/fix_test_filenames
Fix filenames of two function spec tests
Diffstat (limited to 'lib/puppet/functions')
-rw-r--r--lib/puppet/functions/length.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/functions/length.rb b/lib/puppet/functions/length.rb
index 86e735c..5ebd455 100644
--- a/lib/puppet/functions/length.rb
+++ b/lib/puppet/functions/length.rb
@@ -3,7 +3,7 @@ Puppet::Functions.create_function(:length) do
dispatch :length do
param 'Variant[String,Array,Hash]', :value
end
- def length(value)
+ def length(value)
if value.is_a?(String)
result = value.length
elsif value.is_a?(Array) || value.is_a?(Hash)