Merge pull request #1746 from chef/adamleff/fix-xinetd

Fix xinetd resource failing when file cannot be read
This commit is contained in:
Dominik Richter 2017-05-02 11:43:31 +02:00 committed by GitHub
commit 0651a36346

View file

@ -57,7 +57,7 @@ module Inspec::Resources
end
@contents[path] = file.content
if @contents[path].empty? && !file.empty?
if @contents[path].nil? || @contents[path].empty?
return skip_resource "Can't read file \"#{path}\""
end