fix debug code again :(

This commit is contained in:
forest 2021-01-29 00:22:19 -06:00
parent 7914a2e518
commit 40016ecbe6

View File

@ -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: