diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-02-06 12:59:39 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-02-06 17:16:01 -0800 |
commit | 7e71f51917d1701e755a6a701ba6942de5276113 (patch) | |
tree | a4cf8506a7ff0581c327e739fdc148b3a01509ae | |
parent | d3bf8c0246efdd10e48a430f14255d1828161ce7 (diff) | |
download | chef-7e71f51917d1701e755a6a701ba6942de5276113.tar.gz |
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 <tsmith@chef.io>
-rw-r--r-- | lib/chef/knife/cookbook_upload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |