diff options
author | Thom May <thom@may.lt> | 2018-01-29 14:58:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 14:58:19 +0000 |
commit | 801a36374e38ee9110270f691da3e4d49bcc2464 (patch) | |
tree | e4c2e55a03eb10c9789e4db887c4695eec5100c3 | |
parent | 96edf6fa02346c666d64041f3af52d54ba4ec9ad (diff) | |
parent | e083ff05a4a7f741b721cfa657085d27ab30e0f7 (diff) | |
download | chef-801a36374e38ee9110270f691da3e4d49bcc2464.tar.gz |
Merge pull request #6802 from chef/attempts
Use attempt or attempts in the retries logging
-rw-r--r-- | lib/chef/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 65c2e51cf2..ac1146a647 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -591,7 +591,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 |