mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Merge pull request #1746 from chef/adamleff/fix-xinetd
Fix xinetd resource failing when file cannot be read
This commit is contained in:
commit
0651a36346
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue