La il ne faut pas le fqdn
darcs-hash:20050617211054-41617-dd29f6169b219e78ffa5b85d6802a4c187d3f4b3.gz
This commit is contained in:
parent
d7a0d97324
commit
a7e470416b
1 changed files with 1 additions and 1 deletions
|
@ -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("")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue