From 58a5af5be01572a7884877c7346010e6f2c0a8ba Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 9 Sep 2017 21:09:43 +0530 Subject: [PATCH] Fix SSH context naming. --- econtext/ssh.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/econtext/ssh.py b/econtext/ssh.py index c58c9297..beb4ca39 100644 --- a/econtext/ssh.py +++ b/econtext/ssh.py @@ -19,10 +19,6 @@ class Stream(econtext.master.Stream): self.username = username if ssh_path: self.ssh_path = ssh_path - self.name = 'ssh.' + hostname - - def default_name(self): - return self.hostname def get_boot_command(self): bits = [self.ssh_path] @@ -31,3 +27,7 @@ class Stream(econtext.master.Stream): bits.append(self.hostname) base = super(Stream, self).get_boot_command() return bits + map(commands.mkarg, base) + + def connect(self): + super(Stream, self).connect() + self.name = 'ssh.' + self.hostname