Commit 216bfc8f authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Update Python references to exit code constants



Update Python references to exit code constants to take their values
from the generated 'lib/_constants.py'.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 43a9e860
......@@ -675,15 +675,15 @@ DDMS_VALUES_WITH_MODIFY = (DDMS_VALUES | frozenset([
# TODO: DDM_SWAP, DDM_MOVE?
# common exit codes
EXIT_SUCCESS = 0
EXIT_FAILURE = 1
EXIT_NOTCLUSTER = 5
EXIT_NOTMASTER = 11
EXIT_NODESETUP_ERROR = 12
EXIT_CONFIRMATION = 13 # need user confirmation
EXIT_SUCCESS = _constants.EXIT_SUCCESS
EXIT_FAILURE = _constants.EXIT_FAILURE
EXIT_NOTCLUSTER = _constants.EXIT_NOTCLUSTER
EXIT_NOTMASTER = _constants.EXIT_NOTMASTER
EXIT_NODESETUP_ERROR = _constants.EXIT_NODESETUP_ERROR
EXIT_CONFIRMATION = _constants.EXIT_CONFIRMATION # need user confirmation
#: Exit code for query operations with unknown fields
EXIT_UNKNOWN_FIELD = 14
EXIT_UNKNOWN_FIELD = _constants.EXIT_UNKNOWN_FIELD
# tags
TAG_CLUSTER = "cluster"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment