diff options
-rw-r--r-- | delete_at.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/delete_at.rb b/delete_at.rb index c33f65a..1869476 100644 --- a/delete_at.rb +++ b/delete_at.rb @@ -18,7 +18,7 @@ module Puppet::Parser::Functions index = arguments[1] - if not index.match(/^\d+$/) + if index.is_a?(String) and not index.match(/^\d+$/) raise(Puppet::ParseError, 'delete_at(): You must provide ' + 'positive numeric index') end |