Skip to content

Commit

Permalink
Allow SCP to support 'look_for_keys' and 'allow_agent' arguments to c…
Browse files Browse the repository at this point in the history
…onnect method
  • Loading branch information
jmcgill298 committed Oct 11, 2018
1 parent cfed186 commit 44a49d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/jnpr/junos/utils/scp.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def open(self, **scpargs):
# through a jumphost.

config = {}
kwargs = {}
sshargs = ('look_for_keys', 'allow_agent')
kwargs = {arg: scpargs.pop(arg) for arg in sshargs if scpargs.get(arg) is not None}

ssh_config = getattr(junos, '_sshconf_path')
if ssh_config:
config = paramiko.SSHConfig()
Expand Down

0 comments on commit 44a49d3

Please sign in to comment.