BUG FIX: Properly decodes ssh public keyfile 45/65545/1
authorParker Berberian <pberberian@iol.unh.edu>
Mon, 3 Dec 2018 18:38:37 +0000 (13:38 -0500)
committerParker Berberian <pberberian@iol.unh.edu>
Mon, 3 Dec 2018 18:38:37 +0000 (13:38 -0500)
commit259a327639c5e32e15ccce34c013eece72cd175c
tree0ced0c4954769603e5a68ab32d4ab630342e7238
parentb02aa2535c7b7beacbc2d7d24d8522fa596afeee
BUG FIX: Properly decodes ssh public keyfile

Because of how Python3 changed how it handled strings,
the byte string read from the user's keyfile was not directly
serializable. This decodes the bytes into a unicode string, assuming UTF-8 encoding.

Change-Id: I5f723a61fb577fa6d4e76e701ef529521ab389ba
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
dashboard/src/api/admin.py
dashboard/src/api/models.py