summaryrefslogtreecommitdiff
path: root/lib/chef/knife/ssl_check.rb
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-05-02 16:57:37 -0700
committerMatt Wrock <matt@mattwrock.com>2016-05-02 16:57:37 -0700
commitc2d96d88f5dbe0db1a664afe4159ddcd6a5db63e (patch)
tree6112642e46b8a6492949e3de920bbdd12535ba95 /lib/chef/knife/ssl_check.rb
parent8b11ace0440e1340e6753468705a9184573d5571 (diff)
downloadchef-c2d96d88f5dbe0db1a664afe4159ddcd6a5db63e.tar.gz
fixes knife ssl check on windowsssl_check_win
Diffstat (limited to 'lib/chef/knife/ssl_check.rb')
-rw-r--r--lib/chef/knife/ssl_check.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/knife/ssl_check.rb b/lib/chef/knife/ssl_check.rb
index 0c672f322e..82ccb76ad7 100644
--- a/lib/chef/knife/ssl_check.rb
+++ b/lib/chef/knife/ssl_check.rb
@@ -257,7 +257,8 @@ ADVICE
def trusted_certificates
if configuration.trusted_certs_dir && Dir.exist?(configuration.trusted_certs_dir)
- Dir.glob(File.join(configuration.trusted_certs_dir, "*.{crt,pem}"))
+ glob_dir = ChefConfig::PathHelper.escape_glob_dir(configuration.trusted_certs_dir)
+ Dir.glob(File.join(glob_dir, "*.{crt,pem}"))
else
[]
end