From aab20f7b12d3063e9e0bac1e34dc3c2e665c6abf Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Thu, 24 Jan 2019 14:54:33 -0800 Subject: [PATCH] VMTP returns 0 even with failed runs Change-Id: Iaa53aba08ce3adfdc0d998ad2ba76d2ad94e4bff --- vmtp/vmtp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmtp/vmtp.py b/vmtp/vmtp.py index 38f60c5..e969d3f 100755 --- a/vmtp/vmtp.py +++ b/vmtp/vmtp.py @@ -1258,6 +1258,8 @@ def main(): run_vmtp(opts) # If an exit occurs in run_vmtp such as printing version do not log run summary run_summary_required = True + except SystemExit as e: + return_code = e.code except Exception as e: LOG.exception(e) finally: