diff options
author | Tim Smith <tsmith@chef.io> | 2018-06-13 10:45:48 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-06-13 10:45:48 -0700 |
commit | 5116e03f61268634d3fa2d9ce1889b7eb43e941b (patch) | |
tree | a5f629313a12de2bc16d7c2dc5d441856710e0c5 /lib | |
parent | fb7af56751a240bb66de650319375d1eb91460fa (diff) | |
download | chef-5116e03f61268634d3fa2d9ce1889b7eb43e941b.tar.gz |
windows_feature_dism: Fix errors when specifying the source
Make sure we dupe the immutable array of the node attribute so we can
concat the additional array values into it later on.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/windows_feature_dism.rb | 2 |
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 |