fix debug code again :(
This commit is contained in:
parent
7914a2e518
commit
40016ecbe6
@ -128,7 +128,7 @@ def create():
|
|||||||
capacity_avaliable = current_app.config["VIRTUALIZATION_MODEL"].capacity_avaliable(512*1024*1024)
|
capacity_avaliable = current_app.config["VIRTUALIZATION_MODEL"].capacity_avaliable(512*1024*1024)
|
||||||
errors = list()
|
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"]
|
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}")
|
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.
|
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}")
|
current_app.logger.info(f"create for {email_to_log}: posted_keys:\n {posted_keys_string}")
|
||||||
|
|
||||||
if len(errors) == 0:
|
if len(errors) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user