You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(PUP-11788) Account for JRuby behavior in Dir.glob
JRuby does not properly match both directory and file wildcards when
using Dir.glob (e.g. Dir.glob('**/*.pp'), which can lead to incorrect
matches. Because of this, if a manifest name contains ".pp" in its
filename (e.g. foo.pp.pp), Puppet does not recognize it as a manifest
file when importing and parsing manifests.
This commit updates the perform_initial_import method to no longer rely
on that wildcard Dir.glob behavior to recursively traverse a directory
and instead uses only the directory wildcard and uses Array.select
to identify files ending in ".pp" from there.
(cherry picked from commit 663062a)
0 commit comments