summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-13 11:17:30 -0700
committerGitHub <noreply@github.com>2018-06-13 11:17:30 -0700
commit88006e67a95923f385f1879a7520ae112aa7db2a (patch)
treea5f629313a12de2bc16d7c2dc5d441856710e0c5
parentfb7af56751a240bb66de650319375d1eb91460fa (diff)
parent5116e03f61268634d3fa2d9ce1889b7eb43e941b (diff)
downloadchef-88006e67a95923f385f1879a7520ae112aa7db2a.tar.gz
Merge pull request #7370 from chef/windows_feature_source
windows_feature_dism: Fix errors when specifying the source
-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 fc6f25fb3f..fd076ffad3 100644
--- a/lib/chef/resource/windows_feature_dism.rb
+++ b/lib/chef/resource/windows_feature_dism.rb
@@ -117,7 +117,7 @@ class Chef
def features_to_install
@install ||= begin
# disabled features are always available to install
- available_for_install = node["dism_features_cache"]["disabled"]
+ available_for_install = node["dism_features_cache"]["disabled"].dup
# if the user passes a source then removed features are also available for installation
available_for_install.concat(node["dism_features_cache"]["removed"]) if new_resource.source