From b1c4db6af4b7c48b6bbb7759ad9569e9aa18bb03 Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Thu, 18 Jan 2024 18:08:33 +0000 Subject: [PATCH] Fix unloading of Norm records without benchmark Fix unlaoding of normalised summaries that don't have a benchmark/servicelevel type set by corecing them to HEPSPEC to maintain historical records. --- apel/db/records/record.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apel/db/records/record.py b/apel/db/records/record.py index 29b352d0f..579ff5333 100644 --- a/apel/db/records/record.py +++ b/apel/db/records/record.py @@ -299,6 +299,8 @@ def get_msg(self, withhold_dns=False): if key in self._dict_fields: # Create dictionary fields for v0.4 message formats. benchmark_type = self._record_content['ServiceLevelType'] + if benchmark_type is None: + benchmark_type = "HEPSPEC" msg += key+ ": {" + benchmark_type + ": " + value + "}\n" else: # otherwise, add the line