add logging around ssh keys to capsul creation to support a user who is

experiencing bugs
This commit is contained in:
2021-01-29 00:13:32 -06:00
parent 3f6491f359
commit 274c7a2c76
3 changed files with 16 additions and 0 deletions

View File

@ -113,6 +113,8 @@ class DBModel:
)
for ssh_public_key in ssh_public_keys:
current_app.logger.info(f"INSERT INTO vm_ssh_public_key (email, vm_id, ssh_public_key_name) VALUES (\"{email}\", \"{id}\", \"{ssh_public_key}\")")
self.cursor.execute("""
INSERT INTO vm_ssh_public_key (email, vm_id, ssh_public_key_name)
VALUES (%s, %s, %s)