Return exit codes from casctl stop
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
This commit is contained in:
parent
9f6d407d10
commit
55bdad7054
@ -5,8 +5,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
import opencas
|
import opencas
|
||||||
|
|
||||||
if sys.version_info < (3, 5):
|
if sys.version_info < (3, 5):
|
||||||
@ -131,6 +132,9 @@ def stop(flush):
|
|||||||
opencas.stop(flush)
|
opencas.stop(flush)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
eprint(e)
|
eprint(e)
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
# Command line arguments parsing
|
# Command line arguments parsing
|
||||||
|
Loading…
Reference in New Issue
Block a user