summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/knife/cookbook_upload.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/knife/cookbook_upload.rb b/lib/chef/knife/cookbook_upload.rb
index e16e21ae64..cd16358e3f 100644
--- a/lib/chef/knife/cookbook_upload.rb
+++ b/lib/chef/knife/cookbook_upload.rb
@@ -145,8 +145,6 @@ class Chef
end
end
- upload_failures += @name_args.length - @cookbooks_to_upload.length
-
if upload_failures == 0
ui.info "Uploaded #{upload_ok} cookbook#{upload_ok > 1 ? "s" : ""}."
elsif upload_failures > 0 && upload_ok > 0