diff --git a/gestion/hptools.py b/gestion/hptools.py index 1afa5db5..3be858db 100644 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -42,7 +42,8 @@ class ConversationError(Exception) : class ssh : """ Ouverture d'une connexion ssh, envoi de commandes et récupération du résultat """ - __debug = 1 + __debug = 0 + __ssh_log = '/dev/null' __logDest = stderr __ssh_out = '' # Retour de la connexion ssh @@ -50,7 +51,7 @@ class ssh : def __init__(self,host) : """ Ouverture d'une connexion ssh vers le switch choisi """ self.switch = host - self.log=open('/tmp/test_ssh','w') + self.log=open(self.__ssh_log,'w') if self.__debug : self.__logDest.write("SSH DEBUG : __init__(host=%s)\n" % host) self.__host = host