diff options
author | Colleen Murphy <cmurphy@users.noreply.github.com> | 2014-10-28 15:30:17 -0700 |
---|---|---|
committer | Colleen Murphy <cmurphy@users.noreply.github.com> | 2014-10-28 15:30:17 -0700 |
commit | cfc79e9831fb530b4a34bb79db119969b3a166b3 (patch) | |
tree | c955c144ec2386607f2ad7ac69edb1bcf44df320 /lib | |
parent | 759cbdec886bebb859d8def9323c139faf99c024 (diff) | |
parent | 51f1d574d92cf686ac79e57e69d8aff31caf2925 (diff) |
Merge pull request #344 from cyberious/TestCaseFixes
Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string
Diffstat (limited to 'lib')
-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 |