diff options
author | Lamont Granquist <lamont@chef.io> | 2020-01-21 21:43:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 21:43:17 -0800 |
commit | b99534fe0de8d9188455d8391a686e601a72bf20 (patch) | |
tree | d004d4e58dd6c90b3cf52c51cabdb77e2920d903 /lib/chef/knife/cookbook_upload.rb | |
parent | 67a19dfb20c787a84a905859f3e6e76faa106bab (diff) | |
parent | d0d16ae5ed3e3b017df147656388840553797925 (diff) | |
download | chef-b99534fe0de8d9188455d8391a686e601a72bf20.tar.gz |
Raises error if there is empty cookbook directory at the time o… (#9011)
Raises error if there is empty cookbook directory at the time of cookbook upload.
Diffstat (limited to 'lib/chef/knife/cookbook_upload.rb')
-rw-r--r-- | lib/chef/knife/cookbook_upload.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/knife/cookbook_upload.rb b/lib/chef/knife/cookbook_upload.rb index c8c9067800..7bda2815e7 100644 --- a/lib/chef/knife/cookbook_upload.rb +++ b/lib/chef/knife/cookbook_upload.rb @@ -124,7 +124,6 @@ class Chef cookbooks_for_upload << cookbook version_constraints_to_update[cookbook_name] = cookbook.version end - if config[:all] if cookbooks_for_upload.any? begin @@ -168,7 +167,6 @@ class Chef exit 1 end end - unless version_constraints_to_update.empty? update_version_constraints(version_constraints_to_update) if config[:environment] end @@ -193,7 +191,7 @@ class Chef end end rescue Exceptions::CookbookNotFoundInRepo => e - ui.error("Could not find cookbook #{cookbook_name} in your cookbook path, skipping it") + ui.error(e.message) Log.debug(e) end end |