Pas de mode debig par defaut.

darcs-hash:20041205101102-41617-2b666856c39e22bd0a4dde62ec8640b2ea38834b.gz
This commit is contained in:
pauget 2004-12-05 11:11:02 +01:00
parent ebc52c99ac
commit ca632561ae

View file

@ -42,7 +42,8 @@ class ConversationError(Exception) :
class ssh : class ssh :
""" Ouverture d'une connexion ssh, envoi de commandes et récupération du résultat """ """ 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 __logDest = stderr
__ssh_out = '' # Retour de la connexion ssh __ssh_out = '' # Retour de la connexion ssh
@ -50,7 +51,7 @@ class ssh :
def __init__(self,host) : def __init__(self,host) :
""" Ouverture d'une connexion ssh vers le switch choisi """ """ Ouverture d'une connexion ssh vers le switch choisi """
self.switch = host 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) if self.__debug : self.__logDest.write("SSH DEBUG : __init__(host=%s)\n" % host)
self.__host = host self.__host = host