Skip to content

Commit e9e68c0

Browse files
knopers8teo
authored andcommitted
Use err.ConfSvc() as the source of configuration in environment.go
1 parent cb6e001 commit e9e68c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/environment/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func newEnvironment(userVars map[string]string) (env *Environment, err error) {
151151
env.workflow.SetRuntimeVar("run_start_time_ms", runStartTime)
152152
env.workflow.SetRuntimeVar("run_end_time_ms", "") // we delete previous EOR
153153

154-
configStack, err := gera.MakeStringMapWithMap(apricot.Instance().GetVars()).WrappedAndFlattened(gera.MakeStringMapWithMap(apricot.Instance().GetDefaults()))
154+
configStack, err := gera.MakeStringMapWithMap(apricot.Instance().GetVars()).WrappedAndFlattened(gera.MakeStringMapWithMap(the.ConfSvc().GetDefaults()))
155155
if err == nil {
156156
lhcPeriod, ok := configStack["lhc_period"]
157157
if ok {

0 commit comments

Comments
 (0)