diff --git a/plugins/puppet/parser/functions/strlength.rb b/plugins/puppet/parser/functions/strlength.rb index 3b99ed0..8f93e4e 100644 --- a/plugins/puppet/parser/functions/strlength.rb +++ b/plugins/puppet/parser/functions/strlength.rb @@ -1,6 +1,6 @@ module Puppet::Parser::Functions newfunction(:strlength, :type => :rvalue) do |args| - argv[0].to_s.length + args[0].to_s.length end end