fix syntax error

This commit is contained in:
forest 2021-07-12 16:00:37 -05:00
parent 47fbaab403
commit 6e6bd2b143

View File

@ -166,15 +166,14 @@ def can_claim_create(payload, host_id) -> (str, str):
return payload, ""
def on_create_claimed(payload, host_id):
//
# network_name=payload['network_name'],
# hard-code the network name for now until we can fix the phantom dhcp lease issues.
get_model().create_vm(
email=payload['email'],
id=payload['id'],
size=payload['size'],
os=payload['os'],
host=host_id,
# network_name=payload['network_name'],
# hard-code the network name for now until we can fix the phantom dhcp lease issues.
network_name='public3',
public_ipv4=payload['public_ipv4'],
ssh_authorized_keys=list(map(lambda x: x["name"], payload['ssh_authorized_keys'])),