summaryrefslogtreecommitdiff
path: root/lstrip.rb
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-30 02:54:47 +0100
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-30 02:54:47 +0100
commit4da6d8222eeca060ad91c9a49f965ec1150a37c2 (patch)
treecd1d49007085dfaebe9d52b9bd5c7be03723b8da /lstrip.rb
parentdb7a27cf5b0cb5667b17e2cbc686bff4be3966b7 (diff)
Changed wording of the note in the comment.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
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