From: Krzysztof Wilczynski Date: Mon, 25 Apr 2011 02:46:46 +0000 (+0100) Subject: Minor update. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1a8617404c393c9efdbebe9d1d9b5c9c54e536de;p=puppet-stdlib.git Minor update. Signed-off-by: Krzysztof Wilczynski --- diff --git a/collect_indices.rb b/collect_indices.rb index 39cf54a..947fb89 100644 --- a/collect_indices.rb +++ b/collect_indices.rb @@ -42,7 +42,7 @@ module Puppet::Parser::Functions (start .. stop).each { |i| indices_list << i.to_i } else - # Only positive numbers allowed ... + # Only positive numbers allowed in this case ... if not i.match(/^\d+$/) raise(Puppet::ParseError, 'collect_indices(): Unknown format ' + 'of given index')