Skip to content

Commit c739761

Browse files
committed
Fixed a problem where using \warning\ tag was not dumping any messages while \-q\ is used.
1 parent 139f954 commit c739761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform_compliance/common/error_handling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _process(self):
5151
# Prepare message
5252
msg = []
5353
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:
5555
msg_header = '{}{}'.format(self.exception_name,
5656
colorful.bold_white(':')) if msg_index == 0 else ' '*(len(self.exception_name)+1)
5757
msg.append('\t\t{} {}'.format(colorful.bold_red(msg_header), colorful.red(self.message[msg_index])))
@@ -62,7 +62,7 @@ def _process(self):
6262
colorful.bold_white(':'),
6363
self.message[msg_index]))
6464

65-
if self.exit_on_failure is False:
65+
if self.exit_on_failure is False or (self.no_failure is True and msg):
6666
for message in msg:
6767
console_write(message)
6868

0 commit comments

Comments
 (0)