summaryrefslogtreecommitdiffstats
path: root/lib/puppet/networkclient.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-05-02 04:30:40 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-05-02 04:30:40 +0000
commitb67a19b6b0483d73178a928e9d1c2bb752b2f077 (patch)
treedfb6505ece37940f251676bfa95712aba9771ee0 /lib/puppet/networkclient.rb
parenta435d076d4d61e35fe4433a5c3e76ffb2203ac5d (diff)
downloadpuppet-b67a19b6b0483d73178a928e9d1c2bb752b2f077.tar.gz
puppet-b67a19b6b0483d73178a928e9d1c2bb752b2f077.tar.xz
puppet-b67a19b6b0483d73178a928e9d1c2bb752b2f077.zip
Fixing #132, which involved creating a separate CA client and using it to retrieve the certificates. There was more work to do because of the weird client/daemon/server heirarchy.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1160 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/networkclient.rb')
-rw-r--r--lib/puppet/networkclient.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/puppet/networkclient.rb b/lib/puppet/networkclient.rb
index ef3d88179..09c6bc0ab 100644
--- a/lib/puppet/networkclient.rb
+++ b/lib/puppet/networkclient.rb
@@ -44,6 +44,10 @@ module Puppet
# so that they namespaces can define the same methods if
# they want.
newclient = Class.new(self)
+
+ #name = "Puppet::NetworkClient::" + handler.to_s.sub(/^.+::/, '')
+ name = handler.to_s.sub(/^.+::/, '')
+ const_set(name, newclient)
@clients[namespace] = newclient
interface.methods.each { |ary|
@@ -138,7 +142,10 @@ module Puppet
if hash[:Certificate]
self.cert = hash[:Certificate]
else
- Puppet.err "No certificate; running with reduced functionality."
+ unless defined? $nocertwarned
+ Puppet.err "No certificate; running with reduced functionality."
+ $nocertwarned = true
+ end
end
if hash[:Key]