From a7e470416b207c1d86313f131c1a882f7a8f7d76 Mon Sep 17 00:00:00 2001 From: pauget Date: Fri, 17 Jun 2005 23:10:54 +0200 Subject: [PATCH] La il ne faut pas le fqdn darcs-hash:20050617211054-41617-dd29f6169b219e78ffa5b85d6802a4c187d3f4b3.gz --- gestion/hptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("")