diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-08-10 16:20:02 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-08-10 16:20:02 -0700 |
commit | 27e01d76c82e4c64953278399644b6f2cf6417bf (patch) | |
tree | fb7324d4f19c17090e687982fff1ae4654a6d1c5 /lib | |
parent | cdae8d9618063366fa641d3448a672a20521dea3 (diff) | |
download | chef-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.rb | 5 |
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]/ |