summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-09-29 16:32:19 -0700
committerMarkus Roberts <Markus@reality.com>2010-09-30 14:14:31 -0700
commit0aaa742e0f09c25fb5591b72c9073bb1fee59ece (patch)
treedb3a34ab094fb89437e03e5bdfb935c3eee938d5 /lib/puppet/util/rdoc/code_objects.rb
parentea49d13192fce5e891a5ea767ecf05fc3107a411 (diff)
downloadpuppet-0aaa742e0f09c25fb5591b72c9073bb1fee59ece.tar.gz
puppet-0aaa742e0f09c25fb5591b72c9073bb1fee59ece.tar.xz
puppet-0aaa742e0f09c25fb5591b72c9073bb1fee59ece.zip
Fixes #4792 (Duplicate definition since 2.6.1 upgrade)
The evaluate_definitions method was first figuring out which resources needed to be evaluated (using unevaluated_resources), and then evaluating them one by one. As a result, if evaluating one resource triggered another resource to be evaluated, the latter resource could get evaluated twice. This bug could occur, for example, if both resources were classes that were included into the node by an external node classifier, and if the first of the two classes included the second. Modified Resource#evaluate to be idempotent. Also added an integration test to verify the fix.
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions