diff options
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/mount.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/mount/linux.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/mount.rb b/lib/chef/provider/mount.rb index e4592a810d..f8c71c6706 100644 --- a/lib/chef/provider/mount.rb +++ b/lib/chef/provider/mount.rb @@ -175,7 +175,7 @@ class Chef # Returns the new_resource device as per device_type def device_fstab - # Removed "/" from the end of str, because it was causing idempotency issues + # Removed "/" from the end of str, because it was causing idempotency issue. device = @new_resource.device.chomp("/") case @new_resource.device_type when :device diff --git a/lib/chef/provider/mount/linux.rb b/lib/chef/provider/mount/linux.rb index 260c8f9349..382e37d41a 100644 --- a/lib/chef/provider/mount/linux.rb +++ b/lib/chef/provider/mount/linux.rb @@ -54,7 +54,7 @@ class Chef 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/JRTXXGFdQtwCD6 - when %r{\A#{Regexp.escape(real_mount_point)}\s+#{device_mount_regex}\[} + when /\A#{Regexp.escape(real_mount_point)}\s+#{device_mount_regex}\[/ mounted = true logger.trace("Network device #{device_logstring} mounted as #{real_mount_point}") end |