From d13fbd7fb8210f49cec18b698a493ca4e77a7726 Mon Sep 17 00:00:00 2001 From: Todor Ivanov Date: Fri, 9 Dec 2022 14:03:23 +0100 Subject: [PATCH] Change RucioConMon APIs' prefix. Move the API path to the server part of the url and set it in services_config. Add leading slash to the uri. Remove leading slash. --- src/python/WMCore/Services/RucioConMon/RucioConMon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/WMCore/Services/RucioConMon/RucioConMon.py b/src/python/WMCore/Services/RucioConMon/RucioConMon.py index ceca077853..5a695e6727 100644 --- a/src/python/WMCore/Services/RucioConMon/RucioConMon.py +++ b/src/python/WMCore/Services/RucioConMon/RucioConMon.py @@ -100,7 +100,7 @@ def getRSEStats(self): update timestamps for all RSEs known to CMS Rucio :return: A dictionary """ - uri = "/WM/stats" + uri = "stats" rseStats = self._getResult(uri, callname='stats') return rseStats @@ -118,11 +118,11 @@ def getRSEUnmerged(self, rseName, zipped=False): # reading/streaming from file. This will prevent any set arithmetic # in the future. if not zipped: - uri = "WM/files?rse=%s&format=json" % rseName + uri = "files?rse=%s&format=json" % rseName rseUnmerged = self._getResult(uri, callname=rseName) return rseUnmerged else: - uri = "WM/files?rse=%s&format=raw" % rseName + uri = "files?rse=%s&format=raw" % rseName callname = '{}.zipped'.format(rseName) rseUnmerged = self._getResultZipped(uri, callname=callname, clearCache=True) return rseUnmerged