diff options
| author | Luke Kanies <luke@madstop.com> | 2008-05-25 16:00:48 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-05-25 16:00:48 -0500 |
| commit | 29f5f1b862112179ce1b77ae0177811ab2208aeb (patch) | |
| tree | 5938a8df29fd6cf8182f6e12f28956ebeff2732c /lib/puppet/transaction.rb | |
| parent | fe157f239a301abb52f81c62719355c8e50c970c (diff) | |
| parent | 7b02f2ba443ba35d7305c24b87028456eaf6bd29 (diff) | |
| download | puppet-29f5f1b862112179ce1b77ae0177811ab2208aeb.tar.gz puppet-29f5f1b862112179ce1b77ae0177811ab2208aeb.tar.xz puppet-29f5f1b862112179ce1b77ae0177811ab2208aeb.zip | |
Merge branch '0.24.x'
Conflicts:
CHANGELOG
lib/puppet/transaction.rb
Diffstat (limited to 'lib/puppet/transaction.rb')
| -rw-r--r-- | lib/puppet/transaction.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb index d4bc42100..fb00a592d 100644 --- a/lib/puppet/transaction.rb +++ b/lib/puppet/transaction.rb @@ -499,11 +499,13 @@ class Transaction # Prepare to evaluate the resources in a transaction. def prepare - prefetch() - # Now add any dynamically generated resources generate() + # Then prefetch. It's important that we generate and then prefetch, + # so that any generated resources also get prefetched. + prefetch() + # This will throw an error if there are cycles in the graph. @sorted_resources = relationship_graph.topsort end |
