Skip to content

Commit

Permalink
fix exit code is always 1
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Jul 3, 2024
1 parent 987882d commit aefa832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diag_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aefa832

Please sign in to comment.