We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a8f097 + 14e6d11 commit 2dedbb9Copy full SHA for 2dedbb9
lib/puppet/parser/functions/range.rb
@@ -51,6 +51,8 @@ module Puppet::Parser::Functions
51
stop = arguments[1]
52
step = arguments[2].nil? ? 1 : arguments[2].to_i.abs
53
54
+ raise(ArgumentError, 'range(): 3rd arg (step size) must be a non zero integer (e.g. 1 or -1)') if step.zero?
55
+
56
type = '..' # Use the simplest type of Range available in Ruby
57
58
else # arguments.size == 1
0 commit comments