From 40016ecbe6a6ae3f172b4ddfe708c5a76b8506fc Mon Sep 17 00:00:00 2001 From: forest Date: Fri, 29 Jan 2021 00:22:19 -0600 Subject: [PATCH] fix debug code again :( --- capsulflask/console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capsulflask/console.py b/capsulflask/console.py index 2f9832a..5dafc57 100644 --- a/capsulflask/console.py +++ b/capsulflask/console.py @@ -128,7 +128,7 @@ def create(): capacity_avaliable = current_app.config["VIRTUALIZATION_MODEL"].capacity_avaliable(512*1024*1024) errors = list() - ssh_keys_from_db_string = "\n".join(list(map(lambda x: f"name: {x.name}**content: {x.content}", ssh_public_keys))) + ssh_keys_from_db_string = "\n".join(list(map(lambda x: f"name: {x['name']}**content: {x['content']}", ssh_public_keys))) email_to_log = session["account"] current_app.logger.info(f"create for {email_to_log}: ssh keys from db:\n {ssh_keys_from_db_string}") @@ -180,7 +180,7 @@ def create(): host(s) at capacity. no capsuls can be created at this time. sorry. """) - posted_keys_string = "\n".join(list(map(lambda x: f"name: {x.name}**content: {x.content}", posted_keys))) + posted_keys_string = "\n".join(list(map(lambda x: f"name: {x['name']}**content: {x['content']}", posted_keys))) current_app.logger.info(f"create for {email_to_log}: posted_keys:\n {posted_keys_string}") if len(errors) == 0: