diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-11-10 22:01:32 -0800 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-11 03:45:31 -0800 |
commit | 159cb08880750fd72994ba69ca5e244b558a8bcc (patch) | |
tree | 39509e25dbcf085873a5d2210994548e3967aa29 | |
parent | 2ca48d25ddfe4ccea309271a7831db971c7a603e (diff) | |
download | chef-159cb08880750fd72994ba69ca5e244b558a8bcc.tar.gz |
Updated the Regex as per review comment.
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
-rw-r--r-- | lib/chef/provider/mount/linux.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/mount/linux.rb b/lib/chef/provider/mount/linux.rb index bd1844e717..260c8f9349 100644 --- a/lib/chef/provider/mount/linux.rb +++ b/lib/chef/provider/mount/linux.rb @@ -53,8 +53,8 @@ class Chef when %r{\A#{Regexp.escape(real_mount_point)}\s+([/\w])+\[#{device_mount_regex}\]\s} mounted = true logger.trace("Bind device #{device_logstring} mounted as #{real_mount_point}") - # Permalink for network device mounted to an existing mount point: https://rubular.com/r/HicK63SqchPLvk - when %r{\A#{Regexp.escape(real_mount_point)}\s+#{device_mount_regex}\[([\/\w])+\]\s} + # Permalink for network device mounted to an existing mount point: https://rubular.com/r/JRTXXGFdQtwCD6 + when %r{\A#{Regexp.escape(real_mount_point)}\s+#{device_mount_regex}\[} mounted = true logger.trace("Network device #{device_logstring} mounted as #{real_mount_point}") end |