Merge remote-tracking branch 'origin/master'

This commit is contained in:
forest 2020-05-19 22:46:31 -05:00
commit 86da60aa0d
3 changed files with 10 additions and 4 deletions

View File

@ -208,7 +208,7 @@ def create():
@account_required
def ssh_public_keys():
errors = list()
if request.method == "POST":
method = request.form["method"]
content = None
@ -223,7 +223,7 @@ def ssh_public_keys():
name = parts[0]
else:
errors.append("Name is required")
elif not re.match(r"^[0-9A-Za-z_@. -]+$", name):
if not re.match(r"^[0-9A-Za-z_@\. -]+$", name):
errors.append("Name must match \"^[0-9A-Za-z_@. -]+$\"")
if method == "POST":
@ -232,7 +232,7 @@ def ssh_public_keys():
errors.append("Content is required")
else:
content = content.replace("\r", "").replace("\n", "")
if not re.match(r"^(ssh|ecdsa)-[0-9A-Za-z+/_=@. -]+$", content):
if not re.match(r"^(ssh|ecdsa)-[0-9A-Za-z+/_=@\. -]+$", content):
errors.append("Content must match \"^(ssh|ecdsa)-[0-9A-Za-z+/_=@. -]+$\"")
if get_model().ssh_public_key_name_exists(session["account"], name):
@ -342,4 +342,4 @@ def account_balance():
)),
has_payments=len(payments)>0,
account_balance=format(balance_now, '.2f')
)
)

View File

@ -0,0 +1,3 @@
UPDATE os_images SET id = 'openbsd66' WHERE id = 'openbsd67'
UPDATE os_images SET template_image_file_name = 'openbsd-cloud-2020-05.qcow2' WHERE id = 'openbsd66'
UPDATE os_images SET description = 'OpenBSD 6.6' WHERE id = 'openbsd66'

View File

@ -0,0 +1,3 @@
UPDATE os_images SET id = 'openbsd67' WHERE id = 'openbsd66'
UPDATE os_images SET template_image_file_name = 'openbsd-6.7-x86_64.qcow2' WHERE id = 'openbsd67'
UPDATE os_images SET description = 'OpenBSD 6.7' WHERE id = 'openbsd67'