Skip to content

Commit 77841b8

Browse files
authored
Merge pull request #5734 from DIRACGridBot/cherry-pick-2-e9fd5eff6-integration
[sweep:integration] RSS fix: some sites have no resources
2 parents 1f76bbb + c213198 commit 77841b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/ResourceStatusSystem/Utilities/CSHelpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def getSiteElements(siteName):
123123
res = getQueues(siteName)
124124
if not res["OK"]:
125125
return res
126-
resources = list(resources) + list(res["Value"][siteName])
126+
resources = list(resources) + list(res["Value"].get(siteName, []))
127127

128128
return S_OK(resources)
129129

0 commit comments

Comments
 (0)