Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Aug 15, 2018
1 parent def234a commit 20785e8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions fabric/connection.py
Expand Up @@ -289,13 +289,10 @@ def __init__(
for hop in hops:
# Happily, ProxyJump uses identical format to our host
# shorthand...
if prev_gw is None:
# TODO: this isn't persisting config! which among other
# things can lead to not honoring skipping ssh config
# file loads...
cxn = Connection(hop)
else:
cxn = Connection(hop, gateway=prev_gw)
kwargs = dict()
if prev_gw is not None:
kwargs["gateway"] = prev_gw
cxn = Connection(hop, **kwargs)
prev_gw = cxn
gateway = prev_gw
elif "proxycommand" in self.ssh_config:
Expand Down

0 comments on commit 20785e8

Please sign in to comment.