From 7803b178991a3874f8a54f15466a924731dfc03c Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Mon, 15 Jul 2024 16:30:44 +0200 Subject: [PATCH] fix: disable pylint unsupported-membership-test --- .../DataManagementSystem/Agent/RequestOperations/MoveReplica.py | 2 +- .../Agent/RequestOperations/PhysicalRemoval.py | 2 +- .../DataManagementSystem/Agent/RequestOperations/RemoveFile.py | 2 +- .../Agent/RequestOperations/RemoveReplica.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/MoveReplica.py b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/MoveReplica.py index dbb3566961b..558e6eef33a 100644 --- a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/MoveReplica.py +++ b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/MoveReplica.py @@ -379,7 +379,7 @@ def singleRemoval(self, opFile, targetSE): proxyFile = None if "Write access not permitted for this credential" in opFile.Error: # # not a DataManger? set status to failed and return - if "DataManager" in self.shifter: + if "DataManager" in self.shifter: # pylint: disable =unsupported-membership-test # # you're a data manager - save current proxy and get a new one for LFN and retry saveProxy = os.environ["X509_USER_PROXY"] try: diff --git a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/PhysicalRemoval.py b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/PhysicalRemoval.py index ced288c60b2..a3d22496357 100644 --- a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/PhysicalRemoval.py +++ b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/PhysicalRemoval.py @@ -154,7 +154,7 @@ def singleRemoval(self, opFile, targetSE): proxyFile = None if "Write access not permitted for this credential" in opFile.Error: # # not a DataManger? set status to failed and return - if "DataManager" not in self.shifter: + if "DataManager" not in self.shifter: # pylint: disable =unsupported-membership-test opFile.Status = "Failed" elif not opFile.LFN: opFile.Error = "LFN not set" diff --git a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveFile.py b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveFile.py index a6c496cf21a..ecc603b18c4 100644 --- a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveFile.py +++ b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveFile.py @@ -199,7 +199,7 @@ def singleRemoval(self, opFile): # # try to remove with owner proxy proxyFile = None if "Write access not permitted for this credential" in opFile.Error: - if "DataManager" in self.shifter: + if "DataManager" in self.shifter: # pylint: disable =unsupported-membership-test # # you're a data manager - get proxy for LFN and retry saveProxy = os.environ["X509_USER_PROXY"] try: diff --git a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveReplica.py b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveReplica.py index 255dd64bb6b..ed529f780d0 100644 --- a/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveReplica.py +++ b/src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveReplica.py @@ -178,7 +178,7 @@ def _removeWithOwnerProxy(self, opFile, targetSE): """ if "Write access not permitted for this credential" in opFile.Error: proxyFile = None - if "DataManager" in self.shifter: + if "DataManager" in self.shifter: # pylint: disable =unsupported-membership-test # # you're a data manager - save current proxy and get a new one for LFN and retry saveProxy = os.environ["X509_USER_PROXY"] try: