-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only glob *.conf by default in conf.d folder #7130
Conversation
997c046
to
827fa94
Compare
Change looks good. Any thoughts on an acceptance test for this? |
def get_unmatched_files | ||
# transform "/var/lib/*.conf" => /var/lib/* | ||
t = File.split(@path) | ||
all_files = Dir.glob(File.join(t.first, "*")).sort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not show hidden (dot files) in the list of unmatched. I don't anticipate this to be confusing to users, but wanted to point it out.
If a user has a file named '.foo.conf' it will not be matched, nor will '.foo.bar' be shown as being skipped.
@jordansissel I'd love to add acceptance tests, but they are all broken already. Tracking here: #7123 How about I create an issue and add an acceptance for this when #7123 is settled? |
+1 on creating an issue and adding later. |
Fixes #6979, Fixes #1831