Commit 619fdc8e authored by Iustin Pop's avatar Iustin Pop
Browse files

Move a constant from ganeti-master to constants.py

The EXIT_NODESETUP_ERROR is a useful constant and ganeti-watcher could
use it too. This patch moves it to constants.py and modifed the
ganeti-master script to use it from there.

Reviewed-by: imsnah
parent e9f745aa
......@@ -47,7 +47,7 @@ from ganeti import utils
EXIT_OK = 0
EXIT_SOME_ERROR = 1
EXIT_NOTMASTER = constants.EXIT_NOTMASTER
EXIT_NODESETUP_ERROR = 12
EXIT_NODESETUP_ERROR = constants.EXIT_NODESETUP_ERROR
EXIT_DUPLICATE_IP = 13
EXIT_ARGS_ERROR = 14
......
......@@ -87,6 +87,7 @@ INISECT_INS = "instance"
# common exit codes
EXIT_NOTMASTER = 11
EXIT_NODESETUP_ERROR = 12
# 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