Skip to content

Commit a24f10b

Browse files
committed
fix (RMS): use Sequence instead of tuple in ForwardDiset
1 parent d42fe77 commit a24f10b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/DIRAC/RequestManagementSystem/Agent/RequestOperations/ForwardDISET.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
""" :mod: ForwardDISET
2-
3-
==================
4-
5-
.. module: ForwardDISET
6-
7-
:synopsis: DISET forwarding operation handler
8-
9-
.. moduleauthor:: [email protected]
10-
11-
DISET forwarding operation handler
12-
"""
13-
141
import importlib
2+
from collections.abc import Sequence
153

164
# imports
175
from DIRAC import S_ERROR, S_OK, gConfig
@@ -65,7 +53,7 @@ def __call__(self):
6553
return S_ERROR(str(error))
6654

6755
# This is the DISET rpcStub
68-
if isinstance(stub, tuple):
56+
if isinstance(stub, Sequence):
6957
# Ensure the forwarded request is done on behalf of the request owner
7058
res = getDNForUsername(self.request.Owner)
7159
if not res["OK"]:

0 commit comments

Comments
 (0)