From 75483879eb2d27167c7ee4b0a3e72ba78ec4c010 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Fri, 30 Aug 2024 18:04:38 +0200 Subject: [PATCH] sweep: #7771 remove endpoint for space occupancy --- .../Command/FreeDiskSpaceCommand.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/DIRAC/ResourceStatusSystem/Command/FreeDiskSpaceCommand.py b/src/DIRAC/ResourceStatusSystem/Command/FreeDiskSpaceCommand.py index 55b3a80b944..572853b4b3d 100644 --- a/src/DIRAC/ResourceStatusSystem/Command/FreeDiskSpaceCommand.py +++ b/src/DIRAC/ResourceStatusSystem/Command/FreeDiskSpaceCommand.py @@ -7,6 +7,7 @@ For the moment, when you see "token" or "space token" here, just read "StorageElement". """ + import errno import sys from datetime import datetime, timedelta @@ -78,14 +79,7 @@ def doNew(self, masterParams=None): free = occupancy["Free"] total = occupancy["Total"] - endpointResult = CSHelpers.getStorageElementEndpoint(elementName) - if not endpointResult["OK"]: - return endpointResult - # We only take the first endpoint, in case there are severals of them (which is normal). - # Most probably not ideal, because it would be nice to stay consistent, but well... - endpoint = endpointResult["Value"][0] - - results = {"Endpoint": endpoint, "Free": free, "Total": total, "ElementName": elementName} + results = {"Endpoint": "Deprecated", "Free": free, "Total": total, "ElementName": elementName} result = self._storeCommand(results) if not result["OK"]: return result