summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reference/node_source.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-18 18:14:52 -0500
committerLuke Kanies <luke@madstop.com>2008-03-18 18:14:52 -0500
commit7d35ae8fed989ef3edb8a304f625786a04ee5faa (patch)
treed86667636b6e6936c83d965d0282008cd2398617 /lib/puppet/reference/node_source.rb
parent1b3c85ba2c328a09212d1ed3dcf79bb0015dec2f (diff)
downloadpuppet-7d35ae8fed989ef3edb8a304f625786a04ee5faa.tar.gz
puppet-7d35ae8fed989ef3edb8a304f625786a04ee5faa.tar.xz
puppet-7d35ae8fed989ef3edb8a304f625786a04ee5faa.zip
Refactoring how the catalog creation handles errors.
Previously, if there were an error creating a resource, the error would propagate leaving any previously created resources still in memory. Now, resources are removed by default when an error happens during instantiation, and the error propagates to the caller so that they can log or whatever. This also allows the Settings class to correctly and separately handle the cases where we can't create the catalog (which should never happen in normal usage but was happening because of this error -- later catalogs couldn't be created because earlier catalogs left resources lying around) from those where we can't apply the catalog.
Diffstat (limited to 'lib/puppet/reference/node_source.rb')
0 files changed, 0 insertions, 0 deletions