mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
let specinfra support empty block device content
This commit is contained in:
parent
daf0602b93
commit
b13a1b574d
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ module Vulcano::Backends
|
|||
|
||||
def content
|
||||
s = Specinfra::Runner.get_file_content(@path).stdout.strip
|
||||
if s.empty? && (size.nil? or size > 0 or block_device?)
|
||||
if s.empty? && (size.nil? or size > 0)
|
||||
nil
|
||||
else
|
||||
s
|
||||
|
|
Loading…
Add table
Reference in a new issue