summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/sort.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2012-02-05 21:22:27 -0800
committerKen Barber <ken@bob.sh>2012-02-06 17:54:41 +0000
commit24f7095e282fc364b9d12ff26c268b4fd919f09c (patch)
tree047de98a042a38e6dfe6d3915246a5e0634f33cc /lib/puppet/parser/functions/sort.rb
parent4c2bba86f81695023cec68bfe112591cfeec7c80 (diff)
downloadpuppet-stdlib-24f7095e282fc364b9d12ff26c268b4fd919f09c.tar.gz
puppet-stdlib-24f7095e282fc364b9d12ff26c268b4fd919f09c.tar.bz2
(#12377) Avoid infinite loop when retrying require json
Without this patch an infinite loop will be entered if the json and rubygems libraries are not available. This patch fixes the problem by retrying the `require 'json'` only if rubygems was successfully loaded for the first time. Subsequent attempts to load rubygems will cause the LoadError exception from a missing json library to be re-raised. Thanks to Krzysztof Wilczynski for pointing out this issue.
Diffstat (limited to 'lib/puppet/parser/functions/sort.rb')
0 files changed, 0 insertions, 0 deletions