From 2583430ee86ca1383427ead4303111bdc129732b Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 6 Feb 2020 12:59:39 -0800 Subject: Expand the path in knife cookbook upload errors WARNING: Could not find any cookbooks in your cookbook path: '/Users/tsmith/dev/work/chef'. Use --cookbook-path to specify the desired path. instead of: WARNING: Could not find any cookbooks in your cookbook path: .. Use --cookbook-path to specify the desired path. Signed-off-by: Tim Smith --- lib/chef/knife/cookbook_upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/knife/cookbook_upload.rb b/lib/chef/knife/cookbook_upload.rb index 7bda2815e7..21b68f5a9b 100644 --- a/lib/chef/knife/cookbook_upload.rb +++ b/lib/chef/knife/cookbook_upload.rb @@ -111,7 +111,7 @@ class Chef if cookbooks.empty? cookbook_path = config[:cookbook_path].respond_to?(:join) ? config[:cookbook_path].join(", ") : config[:cookbook_path] - ui.warn("Could not find any cookbooks in your cookbook path: #{cookbook_path}. Use --cookbook-path to specify the desired path.") + ui.warn("Could not find any cookbooks in your cookbook path: '#{File.expand_path(cookbook_path)}'. Use --cookbook-path to specify the desired path.") else begin tmp_cl = Chef::CookbookLoader.copy_to_tmp_dir_from_array(cookbooks) -- cgit v1.2.1