diff --git a/lib/puppet/parser/files.rb b/lib/puppet/parser/files.rb index 30187ca7f8b..e7773d3f8a4 100644 --- a/lib/puppet/parser/files.rb +++ b/lib/puppet/parser/files.rb @@ -29,9 +29,10 @@ def find_manifests_in_modules(pattern, environment) # * modulename/filename selector: a file is found in the file directory # of the named module. # - # In the second case a nil is returned if there isn't a file found. In the - # first case (absolute path), there is no existence check done and so the - # path will be returned even if there isn't a file available. + # The check for file existence is performed on the node compiling the + # manifest. A node running "puppet apply" compiles its own manifest, but + # a node running "puppet agent" depends on the configured puppetserver + # for compiling. In either case, a nil is returned if no file is found. # # @param template [String] the file selector # @param environment [Puppet::Node::Environment] the environment in which to search