summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-11-08 16:00:22 -0800
committerTim Smith <tsmith84@gmail.com>2019-11-08 16:00:22 -0800
commit1f11fa6e710dd018bdaecf499db8ed1e89e38e4d (patch)
treef534d65416d8aa31b6bd518b0c1c0244098cc742
parent6475fbc562e4a53ab0d41667b7d6de154b7be37a (diff)
downloadchef-1f11fa6e710dd018bdaecf499db8ed1e89e38e4d.tar.gz
Wrap the sleep in a converge block
We want it to actually update Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/chef_sleep.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/resource/chef_sleep.rb b/lib/chef/resource/chef_sleep.rb
index 07ab99d4da..8bd7d2421d 100644
--- a/lib/chef/resource/chef_sleep.rb
+++ b/lib/chef/resource/chef_sleep.rb
@@ -61,7 +61,9 @@ class Chef
name_property: true
action :sleep do
- sleep(new_resource.seconds)
+ converge_by("sleep #{new_resource.seconds} seconds") do
+ sleep(new_resource.seconds)
+ end
end
end
end