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 Aug 1, 2019
1 parent 5b6c3a1 commit 5f622ec
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 5f622ec

Please sign in to comment.