diff options
Diffstat (limited to 'lib/puppet/network/handler/fileserver.rb')
-rwxr-xr-x | lib/puppet/network/handler/fileserver.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb index 7a5a1fe9a..dd00450be 100755 --- a/lib/puppet/network/handler/fileserver.rb +++ b/lib/puppet/network/handler/fileserver.rb @@ -551,25 +551,22 @@ class Puppet::Network::Handler @path = nil end - @cache = {} - super() end def fileobj(path, links) obj = nil - if obj = @cache[path] + if obj = Puppet.type(:file)[path] # This can only happen in local fileserving, but it's an # important one. It'd be nice if we didn't just set # the check params every time, but I'm not sure it's worth # the effort. obj[:check] = CHECKPARAMS else - obj = Puppet::Type.type(:file).create( + obj = Puppet.type(:file).create( :name => path, :check => CHECKPARAMS ) - @cache[path] = obj end if links == :manage |