Skip to content

Commit

Permalink
BugFix - Fix template rendering for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Dec 15, 2023
1 parent 118ef20 commit 1a2a864
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions issues/issue_120/process-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "0.5"

environment:
- "I_AM_GLOBAL_EV=5"
vars:
EV: 5

processes:
process1:
description: This process will sleep for 2 seconds
command: "echo {{ .EV }} > /tmp/output"
4 changes: 3 additions & 1 deletion src/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ func Load(opts *LoaderOptions) (*types.Project, error) {
assignDefaultProcessValues,
cloneReplicas,
copyWorkingDirToProbes,
assignExecutableAndArgs,
)
err = applyWithErr(mergedProject,
renderTemplates,
)
if err != nil {
return nil, err
}
apply(mergedProject,
assignExecutableAndArgs,
)

err = validate(mergedProject,
validateLogLevel,
Expand Down

0 comments on commit 1a2a864

Please sign in to comment.