diff --git a/lib/rucio/client/didclient.py b/lib/rucio/client/didclient.py index 5e463e1ef6..51a99c139c 100644 --- a/lib/rucio/client/didclient.py +++ b/lib/rucio/client/didclient.py @@ -21,7 +21,7 @@ from rucio.client.baseclient import BaseClient, choice from rucio.common.exception import DeprecationError -from rucio.common.utils import build_url, date_to_str, render_json, render_json_list +from rucio.common.utils import build_url, date_to_str, render_json class DIDClient(BaseClient): @@ -121,7 +121,7 @@ def add_dids(self, dids): """ path = '/'.join([self.DIDS_BASEURL]) url = build_url(choice(self.list_hosts), path=path) - r = self._send_request(url, type_='POST', data=render_json_list(dids)) + r = self._send_request(url, type_='POST', data=render_json(dids)) if r.status_code == codes.created: return True else: diff --git a/lib/rucio/web/rest/flaskapi/v1/replicas.py b/lib/rucio/web/rest/flaskapi/v1/replicas.py index 146d3db4bf..fcbc9fa679 100644 --- a/lib/rucio/web/rest/flaskapi/v1/replicas.py +++ b/lib/rucio/web/rest/flaskapi/v1/replicas.py @@ -43,7 +43,7 @@ from rucio.common.config import config_get, config_get_int from rucio.common.constants import SUPPORTED_PROTOCOLS from rucio.common.exception import AccessDenied, DataIdentifierAlreadyExists, DataIdentifierNotFound, Duplicate, InvalidObject, InvalidPath, InvalidType, ReplicaIsLocked, ReplicaNotFound, ResourceTemporaryUnavailable, RSENotFound, ScopeNotFound -from rucio.common.utils import APIEncoder, parse_response, render_json_list +from rucio.common.utils import APIEncoder, parse_response, render_json from rucio.core.replica_sorter import sort_replicas from rucio.db.sqla.constants import BadFilesStatus from rucio.web.rest.flaskapi.authenticated_bp import AuthenticatedBlueprint @@ -1066,7 +1066,7 @@ def get(self): nattempts = int(params['nattempts'][0]) result = get_suspicious_files(rse_expression=rse_expression, younger_than=younger_than, nattempts=nattempts, vo=request.environ.get('vo')) - return Response(render_json_list(result), 200, content_type='application/json') + return Response(render_json(result), 200, content_type='application/json') class BadReplicasStates(ErrorHandlingMethodView):