Skip to content

Commit d4a625f

Browse files
authored
Merge pull request #6756 from DIRACGridBot/cherry-pick-2-800ee2426-integration
[sweep:integration] Repect paramList in ElasticJobParametersDB.getJobParameters
2 parents e8c75d1 + 46a74ec commit d4a625f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DIRAC/WorkloadManagementSystem/DB/ElasticJobParametersDB.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def getJobParameters(self, jobID: int, paramList=None) -> dict:
131131
self.log.error("Could not retrieve the data from the new index!", res["Message"])
132132
else:
133133
for key in res["Value"]:
134+
if paramList and key not in paramList:
135+
continue
134136
# Add new parameters or overwrite the old ones
135137
resultDict[key] = res["Value"][key]
136138

0 commit comments

Comments
 (0)