diff options
author | Steven Murawski <steven.murawski@gmail.com> | 2016-02-03 12:55:56 -0600 |
---|---|---|
committer | Steven Murawski <steven.murawski@gmail.com> | 2016-02-03 12:55:56 -0600 |
commit | 5291fd70df7b9360b186ff104115f080e949f5e5 (patch) | |
tree | e3a9c06827c624012699b3b1d51edb0717b2f1ed /lib/chef/mixin | |
parent | c5edc180e54629be30cd7ae228323bf2d218663d (diff) | |
download | chef-5291fd70df7b9360b186ff104115f080e949f5e5.tar.gz |
Allow PowerShellTypeCoercions to translate Chef::Node::ImmutableArraysmurawski/dsc_resource_converge_logging
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/powershell_type_coercions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/mixin/powershell_type_coercions.rb b/lib/chef/mixin/powershell_type_coercions.rb index e9fa6b74ac..60c04e85ae 100644 --- a/lib/chef/mixin/powershell_type_coercions.rb +++ b/lib/chef/mixin/powershell_type_coercions.rb @@ -28,8 +28,9 @@ class Chef FalseClass => { :type => lambda { |x| "$false" }}, TrueClass => { :type => lambda { |x| "$true" }}, Hash => {:type => Proc.new { |x| translate_hash(x)}}, - Chef::Node::ImmutableMash => {:type => Proc.new { |x| translate_hash(x)}}, Array => {:type => Proc.new { |x| translate_array(x)}}, + Chef::Node::ImmutableMash => {:type => Proc.new { |x| translate_hash(x)}}, + Chef::Node::ImmutableArray => {:type => Proc.new { |x| translate_array(x)}}, } end |