diff options
Diffstat (limited to 'lib/puppet/file_serving/mount/modules.rb')
-rw-r--r-- | lib/puppet/file_serving/mount/modules.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/file_serving/mount/modules.rb b/lib/puppet/file_serving/mount/modules.rb index bf0bad02b..a7b6d9eee 100644 --- a/lib/puppet/file_serving/mount/modules.rb +++ b/lib/puppet/file_serving/mount/modules.rb @@ -4,16 +4,16 @@ require 'puppet/file_serving/mount' # modules for files. Yay. class Puppet::FileServing::Mount::Modules < Puppet::FileServing::Mount # Return an instance of the appropriate class. - def find(path, options = {}) + def find(path, request) module_name, relative_path = path.split("/", 2) - return nil unless mod = environment(options[:node]).module(module_name) + return nil unless mod = request.environment.module(module_name) mod.file(relative_path) end - def search(path, options = {}) + def search(path, request) module_name, relative_path = path.split("/", 2) - return nil unless mod = environment(options[:node]).module(module_name) + return nil unless mod = request.environment.module(module_name) return nil unless path = mod.file(relative_path) return [path] |