releng/keys: update the way to receive the ephemeral key

Change-Id: I791f3f3f49ecd5884c9e86b5d3b617fc139e031f
Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
Raito Bezarius
2026-05-04 18:57:20 +02:00
parent c71d2ebace
commit c595477002
+1 -1
View File
@@ -14,7 +14,7 @@ def get_ephemeral_key(
env.docs_bucket.removeprefix('s3://'), env.docs_bucket.removeprefix('s3://'),
] ]
if env.s3_ssh_host is not None: if env.s3_ssh_host is not None:
command = ['ssh', '-l', env.s3_ssh_user, *command] command = ['ssh', f'{env.s3_ssh_user}@{env.s3_ssh_host}', *command]
output = subprocess.check_output(command) output = subprocess.check_output(command)
d = json.loads(output.decode()) d = json.loads(output.decode())
return environment.S3Credentials(name=d['name'], return environment.S3Credentials(name=d['name'],