From 1dbe1a9f1fdf05497a72ab997c684600cae6fede Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Thu, 29 Aug 2024 15:26:10 +0200 Subject: [PATCH] feat (RSS): do not consider the end point in SpaceOccupancy anymore --- .../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