# File lib/puppet/file_serving/configuration.rb, line 35 35: def find_mount(mount_name, environment) 36: # Reparse the configuration if necessary. 37: readconfig 38: 39: if mount = mounts[mount_name] 40: return mount 41: end 42: 43: if environment.module(mount_name) 44: Puppet::Util::Warnings.notice_once "DEPRECATION NOTICE: Files found in modules without specifying 'modules' in file path will be deprecated in the next major release. Please fix module '%s' when no 0.24.x clients are present" % mount_name 45: return mounts["modules"] 46: end 47: 48: # This can be nil. 49: mounts[mount_name] 50: end