Skip to content

Commit

Permalink
Bug: Update function name in function calls rucio#6598
Browse files Browse the repository at this point in the history
  • Loading branch information
Ban42 committed Apr 8, 2024
1 parent ae27bf6 commit 49b5bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rucio/client/didclient.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lib/rucio/web/rest/flaskapi/v1/replicas.py
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 49b5bc3

Please sign in to comment.