From 7345820939be6077b46e4ce25de9f3e6fd0c8fe0 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Tue, 27 Jan 2015 17:52:00 +0100 Subject: [PATCH] analyse2.py : petit hint --- surveillance/analyse2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/surveillance/analyse2.py b/surveillance/analyse2.py index f4898869..ae0113ab 100755 --- a/surveillance/analyse2.py +++ b/surveillance/analyse2.py @@ -13,6 +13,10 @@ import time import gestion.config as config import subprocess +if socket.gethostname() != 'odlyd': + print "Va sur odlyd" + sys.exit(1) + ldap = lc_ldap.shortcuts.lc_ldap_readonly() encoding = "UTF-8"