diff options
author | Grzegorz Dudek <grzegorz.dudek@ceneo.pl> | 2017-01-05 13:37:43 +0100 |
---|---|---|
committer | Grzegorz Dudek <grzegorz.dudek@ceneo.pl> | 2017-01-05 13:45:54 +0100 |
commit | e8e2c01d99eae90076b65c4c1e5a1388450fba50 (patch) | |
tree | 3a8d051fa0b7b0b7e3b1b1aedc57d75a01ed2484 /lib/chef/cookbook/syntax_check.rb | |
parent | cd1171f9114e70a4fb2e23b1b3c02da3853f1a46 (diff) | |
download | chef-e8e2c01d99eae90076b65c4c1e5a1388450fba50.tar.gz |
Fixed 'too short control escape' on knfie upload #5702
Signed-off-by: Grzegorz Dudek <grzegorz.dudek@ceneo.pl>
Diffstat (limited to 'lib/chef/cookbook/syntax_check.rb')
-rw-r--r-- | lib/chef/cookbook/syntax_check.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/syntax_check.rb b/lib/chef/cookbook/syntax_check.rb index f8559433dc..29da50d8a6 100644 --- a/lib/chef/cookbook/syntax_check.rb +++ b/lib/chef/cookbook/syntax_check.rb @@ -110,7 +110,7 @@ class Chef end def remove_uninteresting_ruby_files(file_list) - file_list.reject { |f| f =~ %r{#{cookbook_path}/(files|templates)/} } + file_list.reject { |f| f =~ %r{#{Chef::Util::PathHelper.escape_glob_dir(cookbook_path)}/(files|templates)/} } end def ruby_files |