forked from 3wordchant/capsul-flask
hardcode network_name=public3 to sidestep phantom dhcp lease issues
This commit is contained in:
parent
06a2bd3a6f
commit
47fbaab403
@ -166,13 +166,16 @@ def can_claim_create(payload, host_id) -> (str, str):
|
||||
return payload, ""
|
||||
|
||||
def on_create_claimed(payload, host_id):
|
||||
//
|
||||
get_model().create_vm(
|
||||
email=payload['email'],
|
||||
id=payload['id'],
|
||||
size=payload['size'],
|
||||
os=payload['os'],
|
||||
host=host_id,
|
||||
network_name=payload['network_name'],
|
||||
# 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'])),
|
||||
)
|
Loading…
Reference in New Issue
Block a user