summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-02-16 18:20:27 +0000
committerThom May <thom@may.lt>2016-02-16 18:20:27 +0000
commit6f70cd2f494a453ea5d2684889f1584ee57e9190 (patch)
tree84a1cce87cd349c2dfe51f39b2271283c58e614f
parentd5366352014a90c77d5026d65027c1ff756e3c64 (diff)
parentd0df0a4360375a2eddd5342f8420a2cdd8a6079b (diff)
downloadchef-6f70cd2f494a453ea5d2684889f1584ee57e9190.tar.gz
Merge pull request #4580 from chef/tm/cookbook_upload_name_args
remove bogus recalculation of cookbook upload failures
-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