summaryrefslogtreecommitdiffstats
path: root/dashboard/src/api/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/api/models.py')
-rw-r--r--dashboard/src/api/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/src/api/models.py b/dashboard/src/api/models.py
index 78ec920..b6bd79f 100644
--- a/dashboard/src/api/models.py
+++ b/dashboard/src/api/models.py
@@ -652,7 +652,7 @@ class JobFactory(object):
revoke=False,
job=job,
context={
- "key": user.userprofile.ssh_public_key.read(),
+ "key": user.userprofile.ssh_public_key.open().read().decode(encoding="UTF-8"),
"hosts": [host.labid for host in hosts]
}
)