summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-08-10 16:20:02 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-08-10 16:20:02 -0700
commit27e01d76c82e4c64953278399644b6f2cf6417bf (patch)
treefb7324d4f19c17090e687982fff1ae4654a6d1c5 /lib
parentcdae8d9618063366fa641d3448a672a20521dea3 (diff)
downloadchef-27e01d76c82e4c64953278399644b6f2cf6417bf.tar.gz
review fixes
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/mount/mount.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 3006b6af07..ad425aead8 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -53,7 +53,10 @@ class Chef
def enabled?
# Check to see if there is a entry in /etc/fstab. Last entry for a volume wins.
enabled = false
- return unless ::File.exist?("/etc/fstab")
+ if ::File.exist?("/etc/fstab")
+ logger.debug "/etc/fstab not found, treating mount as not-enabled"
+ return
+ end
::File.foreach("/etc/fstab") do |line|
case line
when /^[#\s]/