Skip to content

Commit ed02931

Browse files
committed
[core] Push all AliECS-provided run parameters as snake_case+camelCase
1 parent 422898d commit ed02931

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/environment/transition_startactivity.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ package environment
2626

2727
import (
2828
"errors"
29-
"github.com/AliceO2Group/Control/core/workflow"
3029
"strconv"
3130

31+
"github.com/AliceO2Group/Control/core/workflow"
32+
3233
"github.com/AliceO2Group/Control/common/event"
3334
"github.com/AliceO2Group/Control/common/logger/infologger"
3435
"github.com/AliceO2Group/Control/core/controlcommands"
@@ -91,7 +92,9 @@ func (t StartActivityTransition) do(env *Environment) (err error) {
9192
"lhc_period",
9293
} {
9394
if value, ok := cvs[key]; ok {
95+
// we push the above parameters with both camelCase and snake_case identifiers for convenience
9496
args[strcase.ToLowerCamel(key)] = value
97+
args[key] = value
9598
}
9699
}
97100
}

0 commit comments

Comments
 (0)