summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-26 12:12:09 -0800
committerTim Smith <tsmith@chef.io>2018-01-26 12:12:09 -0800
commite083ff05a4a7f741b721cfa657085d27ab30e0f7 (patch)
tree13245af45888de463704522094a07d603cf2d9d1
parent1b58e044a3c2b3fb11f4064a092fb268203be269 (diff)
downloadchef-e083ff05a4a7f741b721cfa657085d27ab30e0f7.tar.gz
Use attempt or attemps in the retries loggingattempts
We have a count. Just add the s if it's more than 1 left. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index 5ee4be6e25..7d491354b7 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -596,7 +596,7 @@ class Chef
elsif remaining_retries > 0
events.resource_failed_retriable(self, action, remaining_retries, e)
remaining_retries -= 1
- Chef::Log.info("Retrying execution of #{self}, #{remaining_retries} attempt(s) left")
+ Chef::Log.info("Retrying execution of #{self}, #{remaining_retries} attempt#{"s" if remaining_retries > 1} left")
sleep retry_delay
retry
else