mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Support different identity file structures
Something to do with vagrant/paramiko versioning.
This commit is contained in:
parent
8fdfc47f84
commit
b7420192eb
1 changed files with 3 additions and 1 deletions
|
|
@ -160,7 +160,9 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
|
||||||
sshs = paramiko.SSHClient()
|
sshs = paramiko.SSHClient()
|
||||||
sshs.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
sshs.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||||
idfile = sshconfig['identityfile']
|
idfile = sshconfig['identityfile']
|
||||||
if idfile.startswith('"') and idfile.endswith('"'):
|
if isinstance(idfile, list):
|
||||||
|
idfile = idfile[0]
|
||||||
|
elif idfile.startswith('"') and idfile.endswith('"'):
|
||||||
idfile = idfile[1:-1]
|
idfile = idfile[1:-1]
|
||||||
sshs.connect(sshconfig['hostname'], username=sshconfig['user'],
|
sshs.connect(sshconfig['hostname'], username=sshconfig['user'],
|
||||||
port=int(sshconfig['port']), timeout=300, look_for_keys=False,
|
port=int(sshconfig['port']), timeout=300, look_for_keys=False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue