From 1150c643e6fa5fc9b1b9e074bf747aa7317c0bb4 Mon Sep 17 00:00:00 2001 From: Piotr Konopka Date: Tue, 6 May 2025 13:41:47 +0200 Subject: [PATCH] [core] fix malformatted fill_info_fill_number passed to controlled tasks int32 to string() conversion takes the bytes literally, one should use strconv library instead. Fixes OCTRL-1014. --- core/integration/bookkeeping/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/integration/bookkeeping/plugin.go b/core/integration/bookkeeping/plugin.go index aaa0ecfd..3096ae73 100644 --- a/core/integration/bookkeeping/plugin.go +++ b/core/integration/bookkeeping/plugin.go @@ -1440,7 +1440,7 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) { Errorf("could not access the parent role when trying to propagate the LHC fill info") return } - parentRole.SetGlobalRuntimeVar("fill_info_fill_number", string(lhcInfo.FillNumber)) + parentRole.SetGlobalRuntimeVar("fill_info_fill_number", strconv.FormatInt(int64(lhcInfo.FillNumber), 10)) parentRole.SetGlobalRuntimeVar("fill_info_filling_scheme", lhcInfo.FillingSchemeName) parentRole.SetGlobalRuntimeVar("fill_info_beam_type", lhcInfo.BeamType) if lhcInfo.StableBeamsStart != nil {