summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2016-08-25 16:17:26 +0530
committerdheerajd-msys <dheeraj.dubey@msystechnologies.com>2016-08-26 11:22:44 +0530
commit593f2742e83e2bd5338594f37ba8d6658463bdda (patch)
tree97236177b6ef06599c534f093a88e257c764988a
parentb1913dd1cc18448a2cbda81ef40886708b1ca6d0 (diff)
downloadchef-593f2742e83e2bd5338594f37ba8d6658463bdda.tar.gz
Added timeout during removing of windows package
-rw-r--r--lib/chef/provider/package/windows/exe.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/windows/exe.rb b/lib/chef/provider/package/windows/exe.rb
index 211845c073..44a2f19d1e 100644
--- a/lib/chef/provider/package/windows/exe.rb
+++ b/lib/chef/provider/package/windows/exe.rb
@@ -71,7 +71,7 @@ class Chef
uninstall_entries.select { |entry| [uninstall_version].flatten.include?(entry.display_version) }
.map { |version| version.uninstall_string }.uniq.each do |uninstall_string|
Chef::Log.debug("Registry provided uninstall string for #{new_resource} is '#{uninstall_string}'")
- shell_out!(uninstall_command(uninstall_string), { returns: new_resource.returns })
+ shell_out!(uninstall_command(uninstall_string), { :timeout => new_resource.timeout, :returns => new_resource.returns })
end
end