From 941fe9a3e9b32c0c0846147a06ad3b64e0a32d89 Mon Sep 17 00:00:00 2001 From: Benjamin Stieger Date: Tue, 15 Jan 2019 17:13:51 +0100 Subject: [PATCH] Adding a field for AccountingGroupClass, the first part of the AccountingGroup string --- src/htcondor_es/convert_to_json.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/htcondor_es/convert_to_json.py b/src/htcondor_es/convert_to_json.py index d9bb0d4..b8061b4 100644 --- a/src/htcondor_es/convert_to_json.py +++ b/src/htcondor_es/convert_to_json.py @@ -558,6 +558,8 @@ def convert_to_json(ad, cms=True, return_dict=False, reduce_data=False): elif cms: result["Type"] = "production" + result["AccountingGroupClass"] = ad.get("AccountingGroup", "unknown").split('.', 1)[0] + if cms: ad.setdefault("MATCH_EXP_JOB_GLIDEIN_CMSSite", ad.get("MATCH_EXP_JOBGLIDEIN_CMSSite", "Unknown"))