From 619fdc8e4232e58b95fce2575d48cf02f8ec62fd Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Fri, 21 Sep 2007 13:36:50 +0000 Subject: [PATCH] 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 --- daemons/ganeti-master | 2 +- lib/constants.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemons/ganeti-master b/daemons/ganeti-master index 0294a2a50..1863d909a 100755 --- a/daemons/ganeti-master +++ b/daemons/ganeti-master @@ -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 diff --git a/lib/constants.py b/lib/constants.py index 6e327093b..f3d80ec3c 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -87,6 +87,7 @@ INISECT_INS = "instance" # common exit codes EXIT_NOTMASTER = 11 +EXIT_NODESETUP_ERROR = 12 # tags TAG_CLUSTER = "cluster" -- GitLab