diff options
author | John McCrae <john.mccrae@progress.com> | 2022-06-14 12:38:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 12:38:37 -0700 |
commit | d0e7070b9d084aca68c2540b75e5e10129a24988 (patch) | |
tree | 601b9645949b0836c2efdd77b464ed628924b8df /lib/chef/provider/mount/linux.rb | |
parent | 9d008caf0de5794cb8b0768b256afa60af6f1bb2 (diff) | |
parent | 20497ffa8bc97598510fdd385b39a058512d2acb (diff) | |
download | chef-d0e7070b9d084aca68c2540b75e5e10129a24988.tar.gz |
Merge pull request #11626 from MsysTechnologiesllc/smriti/3884_mounting_cifs_shares_with_spaces
Diffstat (limited to 'lib/chef/provider/mount/linux.rb')
-rw-r--r-- | lib/chef/provider/mount/linux.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/provider/mount/linux.rb b/lib/chef/provider/mount/linux.rb index 83fbfab957..899053b613 100644 --- a/lib/chef/provider/mount/linux.rb +++ b/lib/chef/provider/mount/linux.rb @@ -71,6 +71,11 @@ class Chef when /\A#{Regexp.escape(real_mount_point)}\s+#{device_mount_regex}\[/ mounted = true logger.trace("Network device #{device_logstring} mounted as #{real_mount_point}") + # Permalink for network device mounted with a space in device name https://rubular.com/r/CK5zWWms96CRES + # See the comment in "device_with_space_escape" for an explanation what's going here. + when /\A#{Regexp.escape(real_mount_point)}\s+#{device_with_space_escape}\s/ + mounted = true + logger.trace("Network device #{device_logstring} mounted as #{real_mount_point}") end end @current_resource.mounted(mounted) |