summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-21 14:31:30 -0700
committerTim Smith <tsmith@chef.io>2018-03-21 14:31:30 -0700
commitc6644ba0aec98b526c0db09ad73fea497b83d20e (patch)
tree79d8e6238fe70520abe8301cc94d8f080a2638a7
parent3335b3c56d2bb17ed675add0e2ad7e1d3e9d82cc (diff)
downloadchef-windows_feature_v2.tar.gz
Fix a variable from the cookbookwindows_feature_v2
We're not doing weird 32bit directory traversal magic in a method anymore Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/windows_feature_dism.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_feature_dism.rb b/lib/chef/resource/windows_feature_dism.rb
index 24c7bcc3f5..d0850db074 100644
--- a/lib/chef/resource/windows_feature_dism.rb
+++ b/lib/chef/resource/windows_feature_dism.rb
@@ -55,7 +55,7 @@ class Chef
unless features_to_install.empty?
message = "install Windows feature#{'s' if features_to_install.count > 1} #{features_to_install.join(',')}"
converge_by(message) do
- install_command = "#{dism} /online /enable-feature #{features_to_install.map { |f| "/featurename:#{f}" }.join(' ')} /norestart"
+ install_command = "dism.exe /online /enable-feature #{features_to_install.map { |f| "/featurename:#{f}" }.join(' ')} /norestart"
install_command << " /LimitAccess /Source:\"#{new_resource.source}\"" if new_resource.source
install_command << " /All" if new_resource.all