Missing bytes conversion

Missing bytes conversion when returning file data via API.

Change-Id: I57f9b38c88f80f7b4e38e3ebe3e8a6b2745d1b2c
This commit is contained in:
Robert Putt 2018-05-09 18:21:17 +01:00
parent 96b0fb8c59
commit ec5932db85
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def get_artifacts(file_id):
try:
artifact_name = "%s_%s" % (file_id, plugin)
artifact = download_raw_content('artifacts', artifact_name)
artifacts[plugin] = json.loads(artifact[1])
artifacts[plugin] = json.loads(artifact[1].decode('utf-8'))
except ClientException:
artifacts[plugin] = None
return artifacts