Normalize SSH keyfile paths before connecting

Change-Id: I8ea48741f3d1462b1569a5324cb6f1be7940fad1
This commit is contained in:
Federico Ressi 2020-02-20 14:47:56 +01:00
parent 99ca19c195
commit ff682efb10
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ def positive_int(value):
def get_key_filename(value):
if isinstance(value, six.string_types):
value = [value]
return [os.path.realpath(os.path.expanduser(v)) for v in value]
key_filename = [tobiko.tobiko_config_path(v) for v in value]
return [f
for f in key_filename
if os.path.isfile(f)]
SSH_CONNECT_PARAMETERS = {