summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-05-16 09:46:22 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-05-18 15:44:36 -0700
commitaad2fd780b5134af4f5385c38c15a72c28697bd0 (patch)
tree61f2c5c4f1ca47a2c19946d0cc7d5515dee4a9e7 /lib
parent3378841a230cb467173eed9ed5d3aaa6cd08b2fc (diff)
downloadpuppet-aad2fd780b5134af4f5385c38c15a72c28697bd0.tar.gz
puppet-aad2fd780b5134af4f5385c38c15a72c28697bd0.tar.xz
puppet-aad2fd780b5134af4f5385c38c15a72c28697bd0.zip
(#7259) Do not try to load all Terminus classes when configuring the Indirector
When configuring the Indirector routes, we should only try loading the Terminus classes that are referenced by the configuration. Previously, we were loading all Terminus classes, which would cause errors if we didn't have all of the prerequisites for all of them, even if the ones with missing prerequisites weren't being used by the configuration. Paired-with: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/indirector.rb b/lib/puppet/indirector.rb
index 7267ac7f3..86ede5994 100644
--- a/lib/puppet/indirector.rb
+++ b/lib/puppet/indirector.rb
@@ -18,7 +18,7 @@ module Puppet::Indirector
terminus_name = termini["terminus"]
cache_name = termini["cache"]
- Puppet::Indirector::Terminus.terminus_classes(indirection_name)
+ Puppet::Indirector::Terminus.terminus_class(indirection_name, terminus_name || cache_name)
indirection = Puppet::Indirector::Indirection.instance(indirection_name)
raise "Indirection #{indirection_name} does not exist" unless indirection