Commit 1f023b9e authored by Felipe Fonseca's avatar Felipe Fonseca
Browse files

Fixed JSON decoding errors

parent 5dd4f4dd
......@@ -653,7 +653,7 @@ def get_slice_min_topology_and_oedl(request, slice_urn):
is_topology_custom = True
except ObjectDoesNotExist as e:
if is_topology_custom:
# print("Topology located")
......@@ -673,7 +673,7 @@ def get_slice_min_topology_and_oedl(request, slice_urn):
'stop_oedl_template': OEDL.build_stop(processed_topologies['min_topology'], slice_resource, active_lease)
except Exception as e:
print('Error', str(e))
return JsonResponse(response, json_dumps_params={'indent': 2})
......@@ -757,7 +757,7 @@ def save_topology_and_get_oedl(request, slice_urn):
def _get_active_lease(request, slice_urn):
leases = json.loads(get_slice_leases(request, slice_urn).content)['leases']
leases = json.loads(get_slice_leases(request, slice_urn).content.decode('utf-8'))['leases']
chosen_lease = None
for lease in leases:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment