bolt-modules/dir/lib/puppet/functions/dir/children.rb in bolt-2.25.0 vs bolt-modules/dir/lib/puppet/functions/dir/children.rb in bolt-2.26.0

- old
+ new

@@ -23,10 +23,10 @@ mod_path = scope.compiler.environment.module(modname)&.path full_mod_path = File.join(mod_path, subpath || '') if mod_path # Expand relative to the project directory if path is relative - project = Puppet.lookup(:bolt_project_data) + project = Puppet.lookup(:bolt_project) pathname = Pathname.new(dirname) full_dir = pathname.absolute? ? dirname : File.expand_path(File.join(project.path, dirname)) # Sort for testability Dir.children(full_mod_path || full_dir).sort