Skip to content

Commit

Permalink
[AKS] also checking ssh_config_file is a file (Azure#5310)
Browse files Browse the repository at this point in the history
* also checking ssh_config_file is a file

* doesn't need to check path
  • Loading branch information
rjtsdl authored and tjprescott committed Jan 19, 2018
1 parent 4fdaec7 commit 1633844
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def secure_copy(user, host, src, dest, key_filename=None, allow_agent=True):
ssh = paramiko.SSHClient()
proxy = None
ssh_config_file = os.path.expanduser("~/.ssh/config")
if os.path.exists(ssh_config_file):
if os.path.isfile(ssh_config_file):
conf = paramiko.SSHConfig()
with open(ssh_config_file) as f:
conf.parse(f)
Expand Down

0 comments on commit 1633844

Please sign in to comment.