diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-09-30 16:54:43 +0530 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-12 21:31:30 -0800 |
commit | 5951200470b3db0fd75b121db0fc08c3946eafe8 (patch) | |
tree | 52dbdd61f1e73bfeb33195ba2fdf727c5d170001 /lib/chef/provider | |
parent | e263bbe44937bda779cba6322ceb0480b12508ca (diff) | |
download | chef-5951200470b3db0fd75b121db0fc08c3946eafe8.tar.gz |
Updated enabled? method to fix multiple entry issue in fstab.
Fixed test case failure.
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/mount/mount.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index e065ce09e5..ad3f74ebc8 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -70,10 +70,6 @@ class Chef @current_resource.dump($4.to_i) @current_resource.pass($5.to_i) logger.trace("Found mount #{device_fstab} to #{@new_resource.mount_point} in /etc/fstab") - next - when %r{^[/\w]+\s+#{Regexp.escape(@new_resource.mount_point)}\s+} - enabled = false - logger.trace("Found conflicting mount point #{@new_resource.mount_point} in /etc/fstab") end end @current_resource.enabled(enabled) |