diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2018-12-03 13:38:37 -0500 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2018-12-03 13:38:37 -0500 |
commit | e40592d14caf8b4c8d8e13b9623aeef7fee0eb4a (patch) | |
tree | d4b7563284f19cc658d5bc77a969b0438ed7c6c1 /src/api/admin.py | |
parent | b361d6df77ab59bb0f227aec00c19b080f31bc50 (diff) |
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>
Diffstat (limited to 'src/api/admin.py')
-rw-r--r-- | src/api/admin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/admin.py b/src/api/admin.py index 3d32c78..8b2fcb3 100644 --- a/src/api/admin.py +++ b/src/api/admin.py @@ -17,6 +17,7 @@ from api.models import ( HardwareConfig, NetworkConfig, SoftwareConfig, + AccessConfig, AccessRelation, SoftwareRelation, HostHardwareRelation, @@ -33,6 +34,7 @@ admin.site.register(OpnfvApiConfig) admin.site.register(HardwareConfig) admin.site.register(NetworkConfig) admin.site.register(SoftwareConfig) +admin.site.register(AccessConfig) admin.site.register(AccessRelation) admin.site.register(SoftwareRelation) admin.site.register(HostHardwareRelation) |