summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/client
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-24 23:16:47 -0600
committerLuke Kanies <luke@madstop.com>2007-11-24 23:16:47 -0600
commitb575d1585322709604f558742dfd6f5ce412b342 (patch)
tree34e8049bf27383cb19ea23edf4d7d2a870eb7b48 /lib/puppet/network/client
parent3fb8e2e3097c0a9ef0c534a9c96fe02b43b5e38c (diff)
downloadpuppet-b575d1585322709604f558742dfd6f5ce412b342.tar.gz
puppet-b575d1585322709604f558742dfd6f5ce412b342.tar.xz
puppet-b575d1585322709604f558742dfd6f5ce412b342.zip
Integrating Matt Palmer's patch to provide a 'plugins'
mount, fixing #891. The patch was ported to the current code by David Schmitt, I applied the rest of Matt's patches, and I then fixed all of the code so that the tests passed. The primary change I had to make to the patch was reenabling host expansion in paths -- his patch had disabled it.
Diffstat (limited to 'lib/puppet/network/client')
-rw-r--r--lib/puppet/network/client/master.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb
index e0a51513c..0420a461f 100644
--- a/lib/puppet/network/client/master.rb
+++ b/lib/puppet/network/client/master.rb
@@ -370,7 +370,6 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
# Retrieve facts from the central server.
def self.getfacts
-
# Download the new facts
path = Puppet[:factpath].split(":")
files = []
@@ -436,21 +435,6 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
Puppet.warning "Could not load #{type} %s: %s" % [fqfile, detail]
end
end
- ensure
- # For some reason, the libdir doesn't end up in the load path
- # reliably, so we might need to add it here to make sure those shiny
- # new facts get picked up by My Friend Facter.
- $:.unshift(Puppet[:libdir]) unless $:.include?(Puppet[:libdir])
- # Reload everything.
- Facter.clear
- if Facter.respond_to? :loadfacts
- Facter.loadfacts
- elsif Facter.respond_to? :load
- Facter.load
- else
- raise Puppet::Error,
- "You must upgrade your version of Facter to use centralized facts"
- end
end
def self.loadfacts