Signed-off-by: Guido Trotter <[email protected]> --- daemons/ganeti-nld | 7 +++---- lib/constants.py | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/daemons/ganeti-nld b/daemons/ganeti-nld index aeb8af0..3e0d52f 100755 --- a/daemons/ganeti-nld +++ b/daemons/ganeti-nld @@ -54,9 +54,8 @@ from ganeti import errors import ganeti.confd.client # Injecting ourselves in the ganeti constants -NLD = "ganeti-nld" -gnt_constants.NLD = NLD -gnt_constants.DAEMONS_LOGFILES[NLD] = gnt_constants.LOG_DIR + "nl-daemon.log" +gnt_constants.NLD = constants.NLD +gnt_constants.DAEMONS_LOGFILES[constants.NLD] = gnt_constants.LOG_DIR + "nl-daemon.log" # Node list update period (seconds) NODE_LIST_UPDATE_TIMEOUT = 30 @@ -452,7 +451,7 @@ def main(): dirs.append((gnt_constants.LOCK_DIR, 1777)) nld = NetworkLookupDaemon() - daemon.GenericMain(NLD, parser, dirs, nld.CheckNld, nld.ExecNld) + daemon.GenericMain(constants.NLD, parser, dirs, nld.CheckNld, nld.ExecNld) if __name__ == "__main__": diff --git a/lib/constants.py b/lib/constants.py index 0f42edc..1954d5f 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -23,6 +23,8 @@ from ganeti_nbma import _autoconf +NLD = "ganeti-nld" + RELEASE_VERSION = _autoconf.PACKAGE_VERSION CONF_DIR = _autoconf.PKGSYSCONFDIR DEFAULT_CONF_FILE = CONF_DIR + "/common.conf" -- 1.6.6.1
