From aefa832279ea821a21c0392bf45fbf91782522d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A0=E7=A3=8A?= Date: Wed, 3 Jul 2024 20:40:22 +0800 Subject: [PATCH] fix exit code is always 1 --- diag_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diag_cmd.py b/diag_cmd.py index c06e2a3c..33d367c5 100644 --- a/diag_cmd.py +++ b/diag_cmd.py @@ -233,7 +233,7 @@ def do_command(self): if self.has_trace: ROOT_IO.print('Trace ID: %s' % trace_id) ROOT_IO.print('If you want to view detailed obdiag logs, please run: {0} display-trace {1}'.format(obdiag_bin, trace_id)) - return ret + return ret or True def _do_command(self, obdiag): raise NotImplementedError