diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-02 16:16:40 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-02 16:16:40 -0800 |
commit | 35d62d626384fabcb2b50fbbc4acab7f8c490c06 (patch) | |
tree | 9d01cfb2c212f00cce2e1df3c432ff8763f9de02 /lib/chef/resource | |
parent | 5db21023d75dc90002010c0bafb2a438baf11996 (diff) | |
download | chef-35d62d626384fabcb2b50fbbc4acab7f8c490c06.tar.gz |
Chefstyle fix
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/windows_feature.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/windows_feature.rb b/lib/chef/resource/windows_feature.rb index f1404cf198..42f5524cc1 100644 --- a/lib/chef/resource/windows_feature.rb +++ b/lib/chef/resource/windows_feature.rb @@ -72,16 +72,16 @@ class Chef # call the appropriate windows_feature resource based on the specified subresource # @return [void] def run_default_subresource(desired_action) - raise "Support for Windows feature installation via servermanagercmd.exe has been removed as this support is no longer needed in Windows 2008 R2 and above. You will need to update your cookbook to install either via dism or powershell (preferred)." if new_resource.install_method == :windows_feature_servermanagercmd + raise "Support for Windows feature installation via servermanagercmd.exe has been removed as this support is no longer needed in Windows 2008 R2 and above. You will need to update your cookbook to install either via dism or powershell (preferred)." if new_resource.install_method == :windows_feature_servermanagercmd subresource = new_resource.install_method || :windows_feature_dism declare_resource(subresource, new_resource.name) do action desired_action feature_name new_resource.feature_name source new_resource.source if new_resource.source - all new_resource.all - timeout new_resource.timeout - management_tools new_resource.management_tools if subresource == :windows_feature_powershell + all new_resource.all + timeout new_resource.timeout + management_tools new_resource.management_tools if subresource == :windows_feature_powershell end end end |