ssh_public_keys -> ssh_authorized_keys rename (merge fix)

This commit is contained in:
2021-02-15 19:44:26 -06:00
parent 8d0088ef13
commit 0a70c974ec
6 changed files with 19 additions and 19 deletions

View File

@ -159,7 +159,7 @@ def create():
elif os not in operating_systems:
errors.append(f"Invalid os {os}")
posted_keys_count = int(request.form["ssh_public_key_count"])
posted_keys_count = int(request.form["ssh_authorized_key_count"])
posted_keys = list()
if posted_keys_count > 1000:
@ -226,8 +226,8 @@ def create():
csrf_token = session["csrf-token"],
capacity_avaliable=capacity_avaliable,
account_balance=format(account_balance, '.2f'),
ssh_public_keys=public_keys_for_account,
ssh_public_key_count=len(public_keys_for_account),
ssh_authorized_keys=public_keys_for_account,
ssh_authorized_key_count=len(public_keys_for_account),
no_ssh_public_keys=len(public_keys_for_account) == 0,
operating_systems=operating_systems,
cant_afford=len(affordable_vm_sizes) == 0,