Fix SSH context naming.

pull/35/head
David Wilson 7 years ago
parent 6ddc40130d
commit 58a5af5be0

@ -19,10 +19,6 @@ class Stream(econtext.master.Stream):
self.username = username self.username = username
if ssh_path: if ssh_path:
self.ssh_path = ssh_path self.ssh_path = ssh_path
self.name = 'ssh.' + hostname
def default_name(self):
return self.hostname
def get_boot_command(self): def get_boot_command(self):
bits = [self.ssh_path] bits = [self.ssh_path]
@ -31,3 +27,7 @@ class Stream(econtext.master.Stream):
bits.append(self.hostname) bits.append(self.hostname)
base = super(Stream, self).get_boot_command() base = super(Stream, self).get_boot_command()
return bits + map(commands.mkarg, base) return bits + map(commands.mkarg, base)
def connect(self):
super(Stream, self).connect()
self.name = 'ssh.' + self.hostname

Loading…
Cancel
Save