La il ne faut pas le fqdn

darcs-hash:20050617211054-41617-dd29f6169b219e78ffa5b85d6802a4c187d3f4b3.gz
This commit is contained in:
pauget 2005-06-17 23:10:54 +02:00
parent d7a0d97324
commit a7e470416b

View file

@ -48,7 +48,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.split('.')[0] # On garde pas le fqdn
self.__sshout = '' self.__sshout = ''
self.ssh = pexpect.spawn("ssh %s" % host) self.ssh = pexpect.spawn("ssh %s" % host)
self.ssh.sendline("") self.ssh.sendline("")