summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/client
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-06 19:02:45 -0500
committerLuke Kanies <luke@madstop.com>2008-05-06 19:02:45 -0500
commitdd4d8684fc19adcb68c681ba1c446a737498cda0 (patch)
tree7dfd898ef167982ea905a542fed6066fb78768b7 /lib/puppet/network/client
parent57c753419ac4700ab87689a3e3c3eb7302fff693 (diff)
downloadpuppet-dd4d8684fc19adcb68c681ba1c446a737498cda0.tar.gz
puppet-dd4d8684fc19adcb68c681ba1c446a737498cda0.tar.xz
puppet-dd4d8684fc19adcb68c681ba1c446a737498cda0.zip
Fixing the HttpPool module to get rid of an infinite loop.
We can't have the HttpPool class use the Indirector to see if it has a cert available, because it might be being used to try to download one, which would cause it to make an http instance, which would cause it to... Well, you get the idea. Adding and fixing a few other tests I ran into on the way.
Diffstat (limited to 'lib/puppet/network/client')
-rw-r--r--lib/puppet/network/client/ca.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/client/ca.rb b/lib/puppet/network/client/ca.rb
index a2704e451..5fbdfe9e3 100644
--- a/lib/puppet/network/client/ca.rb
+++ b/lib/puppet/network/client/ca.rb
@@ -45,7 +45,7 @@ class Puppet::Network::Client::CA < Puppet::Network::Client
end
unless @cert.check_private_key(key)
- raise InvalidCertificate, "Certificate does not match private key. Try 'puppetca --clean %s' on the server." % Facter.value(:fqdn)
+ raise InvalidCertificate, "Certificate does not match private key. Try 'puppetca --clean %s' on the server." % Puppet[:certname]
end
# Only write the cert out if it passes validating.