diff --git a/diag_cmd.py b/diag_cmd.py index dc9064a6..95d5dc14 100644 --- a/diag_cmd.py +++ b/diag_cmd.py @@ -294,8 +294,12 @@ def args_to_str(args): ROOT_IO.print('Trace ID: %s' % self.trace_id) ROOT_IO.print('If you want to view detailed obdiag logs, please run: {0} display-trace {1}'.format(obdiag_bin, self.trace_id)) telemetry.put_data() - if ret.get_code() == ObdiagResult.SUCCESS_CODE: - return True + if ROOT_IO.silent: + if ret.get_code() == ObdiagResult.SUCCESS_CODE: + return True + else: + return False + return True except NotImplementedError: ROOT_IO.exception('command \'%s\' is not implemented' % self.prev_cmd) except SystemExit: