diff options
author | sanga17 <sausekar@msystechnologies.com> | 2020-03-24 09:57:06 +0530 |
---|---|---|
committer | sanga17 <sausekar@msystechnologies.com> | 2020-03-24 09:57:06 +0530 |
commit | 885d8c4d2994e1282e13bc982f2906ba6d354bda (patch) | |
tree | 9e5cd4ca0853d330c4082cb4523bb3f20249f9a2 | |
parent | b3509511cde8822693e86c98f9834e0508630f20 (diff) | |
download | chef-885d8c4d2994e1282e13bc982f2906ba6d354bda.tar.gz |
Cannot modify frozen string issue resolved
Signed-off-by: sanga17 <sausekar@msystechnologies.com>
-rw-r--r-- | lib/chef/resource/windows_share.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_share.rb b/lib/chef/resource/windows_share.rb index 1b81eaf55f..2c4d79522a 100644 --- a/lib/chef/resource/windows_share.rb +++ b/lib/chef/resource/windows_share.rb @@ -39,7 +39,7 @@ class Chef # Specifies the path of the location of the folder to share. The path must be fully qualified. Relative paths or paths that contain wildcard characters are not permitted. property :path, String, description: "The path of the folder to share. Required when creating. If the share already exists on a different path then it is deleted and re-created.", - coerce: proc { |p| p.gsub!(%r{/}, "\\") || p } + coerce: proc { |p| p.gsub(%r{/}, "\\") || p } # Specifies an optional description of the SMB share. A description of the share is displayed by running the Get-SmbShare cmdlet. The description may not contain more than 256 characters. property :description, String, |