diff --git a/gestion/hptools.py b/gestion/hptools.py index bea51538..4b552256 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -48,7 +48,7 @@ class ssh : def __init__(self,host) : """ 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.ssh = pexpect.spawn("ssh %s" % host) self.ssh.sendline("")