Skip to content

Commit

Permalink
[DONOTMERGE] Normalize WMTool value
Browse files Browse the repository at this point in the history
this is a temporary change, The value was fixed upstream, this change is only needed while old tasks are still being processed
  • Loading branch information
cronosnull committed Mar 31, 2020
1 parent eee6be0 commit 42b590b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/htcondor_es/convert_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,12 @@ def convert_to_json(
result["CommittedTime"] = result.get("RemoteWallClockTime")
elif "CRAB_Id" in result: # If is an analysis or HC test task.
result["CRAB_PostJobStatus"] = _status

# Normalize wmtool value, this is a temporary change
# Not to be merged (The value was fixed upstream,
# this change is only needed while old tasks
# are still being processed
_wmtool = result.get("CMS_WMTool","UNKNOWN")
result["CMS_WMTool"] = "User" if _wmtool.lower() == "user" else _wmtool
if reduce_data:
result = drop_fields_for_running_jobs(result)

Expand Down

0 comments on commit 42b590b

Please sign in to comment.