mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
fixed bug in --no-diff behavior
Signed-off-by: Will Dower <wdower@mitre.org>
This commit is contained in:
parent
ec76259eb1
commit
22944c33b8
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ module Inspec
|
|||
p[:controls]&.each do |c|
|
||||
c[:results]&.each do |r|
|
||||
next unless r[:message] # :message only set on failure
|
||||
|
||||
pos = r[:message].index("\n\nDiff:")
|
||||
#require 'pry'; binding.pry
|
||||
pos = r[:message].index(/\n{1,2}Diff.*:/)
|
||||
next unless pos # Only textual tests get Diffs
|
||||
|
||||
r[:message] = r[:message].slice(0, pos)
|
||||
|
|
Loading…
Reference in a new issue