bugfix: return nil on file content read errors

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-15 13:21:56 +02:00
parent b04cfc688d
commit e0b89e6ae2

View file

@ -48,6 +48,8 @@ module Vulcano::Backends
class File < LinuxFile
def content
@content ||= ::File.read(@path)
rescue StandardError => _
nil
end
%w{