diff options
author | Travis Fields <travis@puppetlabs.com> | 2014-10-28 15:31:37 -0700 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2014-10-28 15:31:37 -0700 |
commit | a6f3f781d195c6fc0b263fc4eb46ef274d360627 (patch) | |
tree | ab68f0ce8128817feb77c8b393809e01bad73ff7 /lib/puppet/parser | |
parent | 9dea09297956f6f7ac0a75e83e9f3e2e5681432c (diff) | |
parent | cfc79e9831fb530b4a34bb79db119969b3a166b3 (diff) |
Merge remote-tracking branch 'origin/4.3.x' back to master
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/functions/values_at.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/values_at.rb b/lib/puppet/parser/functions/values_at.rb index d3e69d9..f350f53 100644 --- a/lib/puppet/parser/functions/values_at.rb +++ b/lib/puppet/parser/functions/values_at.rb @@ -49,6 +49,7 @@ Would return ['a','c','d']. indices_list = [] indices.each do |i| + i = i.to_s if m = i.match(/^(\d+)(\.\.\.?|\-)(\d+)$/) start = m[1].to_i stop = m[3].to_i |