diff options
author | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2019-10-22 14:12:22 +0530 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-01-22 22:42:27 -0800 |
commit | 93e025efbf1b3fadf873da5cee1a6e6ed13afd5a (patch) | |
tree | 10a98667ee8d51360ad8590f1f5930b5c52cffee /lib/chef/knife | |
parent | 69560f82984aaf08602c8449d5992609a121d796 (diff) | |
download | chef-93e025efbf1b3fadf873da5cee1a6e6ed13afd5a.tar.gz |
Deprecated the load method in cookbook_version_loader and added deprecation warning for it. Updated code to raise error if cookbook repo has cookbook directory without cookbook files, this is to make sure user should fix their cookbook repo and remove any garbage from cookbook repository and then do bulk upload.
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/cookbook_upload.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/knife/cookbook_upload.rb b/lib/chef/knife/cookbook_upload.rb index 7605366718..7bda2815e7 100644 --- a/lib/chef/knife/cookbook_upload.rb +++ b/lib/chef/knife/cookbook_upload.rb @@ -167,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 @@ -192,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 |