diff options
author | Thom May <thom@chef.io> | 2016-04-20 11:59:57 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-04-21 08:37:08 +0100 |
commit | cba4457d9f1ab3be138f73f0dc9640f2f5abc229 (patch) | |
tree | 90d83e62cf1eb9e5530a13e153af391149a928d1 /lib/chef/chef_fs/file_system | |
parent | 0751ae06e555442ff0fab8c8839d86d03c1693da (diff) | |
download | chef-cba4457d9f1ab3be138f73f0dc9640f2f5abc229.tar.gz |
Create children
Diffstat (limited to 'lib/chef/chef_fs/file_system')
-rw-r--r-- | lib/chef/chef_fs/file_system/repository/client_keys_sub_dir.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_system/repository/client_keys_sub_dir.rb b/lib/chef/chef_fs/file_system/repository/client_keys_sub_dir.rb index 18eb77326b..d231e41e78 100644 --- a/lib/chef/chef_fs/file_system/repository/client_keys_sub_dir.rb +++ b/lib/chef/chef_fs/file_system/repository/client_keys_sub_dir.rb @@ -27,7 +27,7 @@ class Chef class ClientKeysSubDir < Repository::Directory def can_have_child?(name, is_dir) - is_dir && !name.start_with?(".") + !is_dir && File.extname(name) == ".json" end protected |