Un-hard-code SSH key name
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc 2021-07-18 13:26:46 +02:00
parent 0e5dfe6bde
commit f5c079ffc2

View File

@ -177,5 +177,5 @@ def on_create_claimed(payload, host_id):
host=host_id,
network_name=payload['network_name'],
public_ipv4=payload['public_ipv4'],
ssh_authorized_keys=['3wc'],
ssh_authorized_keys=list(map(lambda x: x["name"], payload['ssh_authorized_keys'])),
)