Skip to content

Commit

Permalink
Fix unloading of Norm records without benchmark
Browse files Browse the repository at this point in the history
Fix unlaoding of normalised summaries that don't have a
benchmark/servicelevel type set by corecing them to HEPSPEC to maintain
historical records.
  • Loading branch information
tofu-rocketry committed Apr 25, 2024
1 parent bd4783b commit b1c4db6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apel/db/records/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1c4db6

Please sign in to comment.