summaryrefslogtreecommitdiff
path: root/lib/chef/provider
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-09-30 16:54:43 +0530
committerantima-gupta <agupta@msystechnologies.com>2020-11-12 21:31:30 -0800
commit5951200470b3db0fd75b121db0fc08c3946eafe8 (patch)
tree52dbdd61f1e73bfeb33195ba2fdf727c5d170001 /lib/chef/provider
parente263bbe44937bda779cba6322ceb0480b12508ca (diff)
downloadchef-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.rb4
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)