diff options
| author | Luke Kanies <luke@madstop.com> | 2008-01-08 09:23:34 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-01-08 09:23:34 -0600 |
| commit | 3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e (patch) | |
| tree | 2d47761110c458f175f6483f0424a959cbcb3f34 /lib/puppet/network | |
| parent | fe9b453650755e66e29eca259075e2e7245a5219 (diff) | |
| download | puppet-3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e.tar.gz puppet-3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e.tar.xz puppet-3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e.zip | |
Lots o' bug-fixes toward getting rid of global resources.
We still have about 60 failing tests, but some of them are
the failing directory service tests (probably 20 or so),
and most are simple fixes to the tests themselves.
Diffstat (limited to 'lib/puppet/network')
| -rwxr-xr-x | lib/puppet/network/handler/fileserver.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb index e6378bf01..3ee4721f3 100755 --- a/lib/puppet/network/handler/fileserver.rb +++ b/lib/puppet/network/handler/fileserver.rb @@ -568,12 +568,14 @@ class Puppet::Network::Handler @path = nil end + @files = {} + super() end def fileobj(path, links, client) obj = nil - if obj = Puppet.type(:file)[file_path(path, client)] + if obj = @files[file_path(path, client)] # 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 @@ -584,6 +586,7 @@ class Puppet::Network::Handler :name => file_path(path, client), :check => CHECKPARAMS ) + @files[file_path(path, client)] = obj end if links == :manage @@ -600,7 +603,7 @@ class Puppet::Network::Handler # Read the contents of the file at the relative path given. def read_file(relpath, client) - File.read(file_path(relpath, client)) + File.read(file_path(relpath, client)) end # Cache this manufactured map, since if it's used it's likely |
