summaryrefslogtreecommitdiff
path: root/lstrip.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lstrip.rb')
-rw-r--r--lstrip.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lstrip.rb b/lstrip.rb
index 241b683..a7b2656 100644
--- a/lstrip.rb
+++ b/lstrip.rb
@@ -19,6 +19,7 @@ module Puppet::Parser::Functions
end
if value.is_a?(Array)
+ # Numbers in Puppet are often string-encoded which is troublesome ...
result = value.collect { |i| i.is_a?(String) ? i.lstrip : i }
else
result = value.lstrip