summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/range.rb
diff options
context:
space:
mode:
authortphoney <tp@puppet.com>2016-07-19 11:42:47 +0100
committertphoney <tp@puppet.com>2016-07-19 11:42:47 +0100
commitef935bb287c54ac615f7f538a6f89190b4d2c4d7 (patch)
tree228c81f72b085fdafdfadb94f9e6eeabb275c7f4 /lib/puppet/parser/functions/range.rb
parent01bc41e73621fa07d0b14b3b3fa8a75e666a7df5 (diff)
(MODULES-2143) document edge behaviour of range.
Diffstat (limited to 'lib/puppet/parser/functions/range.rb')
-rw-r--r--lib/puppet/parser/functions/range.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/range.rb b/lib/puppet/parser/functions/range.rb
index 2fc2113..d690df7 100644
--- a/lib/puppet/parser/functions/range.rb
+++ b/lib/puppet/parser/functions/range.rb
@@ -25,8 +25,8 @@ integers automatically)
Will return: ["a","b","c"]
range("host01", "host10")
-
Will return: ["host01", "host02", ..., "host09", "host10"]
+NB Be explicit in including trailing zeros. Otherwise the underlying ruby function will fail.
Passing a third argument will cause the generated range to step by that
interval, e.g.