Skip to content

Commit 1150c64

Browse files
committed
[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.
1 parent ba8c4c6 commit 1150c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/integration/bookkeeping/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
14401440
Errorf("could not access the parent role when trying to propagate the LHC fill info")
14411441
return
14421442
}
1443-
parentRole.SetGlobalRuntimeVar("fill_info_fill_number", string(lhcInfo.FillNumber))
1443+
parentRole.SetGlobalRuntimeVar("fill_info_fill_number", strconv.FormatInt(int64(lhcInfo.FillNumber), 10))
14441444
parentRole.SetGlobalRuntimeVar("fill_info_filling_scheme", lhcInfo.FillingSchemeName)
14451445
parentRole.SetGlobalRuntimeVar("fill_info_beam_type", lhcInfo.BeamType)
14461446
if lhcInfo.StableBeamsStart != nil {

0 commit comments

Comments
 (0)