[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
James Turnbull
james at lovedthanlost.net
Wed Jul 14 10:29:48 UTC 2010
The following commit has been merged in the upstream branch:
commit 282b4b3b469a5b40a671f99e23f7382a433ca944
Author: Luke Kanies <luke at madstop.com>
Date: Mon Dec 21 14:03:53 2009 -0800
Removing some unneeded validation code from Transaction.new
Signed-off-by: Luke Kanies <luke at madstop.com>
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb
index e132b72..21aa7a3 100644
--- a/lib/puppet/transaction.rb
+++ b/lib/puppet/transaction.rb
@@ -417,14 +417,8 @@ class Transaction
# this should only be called by a Puppet::Type::Component resource now
# and it should only receive an array
- def initialize(resources)
- if resources.is_a?(Puppet::Resource::Catalog)
- @catalog = resources
- elsif resources.is_a?(Puppet::SimpleGraph)
- raise "Transactions should get catalogs now, not SimpleGraph"
- else
- raise "Transactions require catalogs"
- end
+ def initialize(catalog)
+ @catalog = resources
@resourcemetrics = {
:total => @catalog.vertices.length,
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list