Commit c739761 1 parent 139f954 commit c739761 Copy full SHA for c739761
File tree 1 file changed +2
-2
lines changed
terraform_compliance/common
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def _process(self):
51
51
# Prepare message
52
52
msg = []
53
53
for msg_index in range (0 ,len (self .message )):
54
- if self .exit_on_failure is False :
54
+ if self .exit_on_failure is False or self . no_failure is True :
55
55
msg_header = '{}{}' .format (self .exception_name ,
56
56
colorful .bold_white (':' )) if msg_index == 0 else ' ' * (len (self .exception_name )+ 1 )
57
57
msg .append ('\t \t {} {}' .format (colorful .bold_red (msg_header ), colorful .red (self .message [msg_index ])))
@@ -62,7 +62,7 @@ def _process(self):
62
62
colorful .bold_white (':' ),
63
63
self .message [msg_index ]))
64
64
65
- if self .exit_on_failure is False :
65
+ if self .exit_on_failure is False or ( self . no_failure is True and msg ) :
66
66
for message in msg :
67
67
console_write (message )
68
68
You can’t perform that action at this time.
0 commit comments