Skip to content

Commit

Permalink
Merge pull request #77 from warptools/ferk-cmd-fixes
Browse files Browse the repository at this point in the history
fix the --cmd flag for ferk to not segfault on custom step names
  • Loading branch information
TripleDogDare committed Jul 6, 2023
2 parents d0d683a + 0aec67a commit 92d2374
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/enter/ferk_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func cmdFerk(c *cli.Context) error {

// set command to execute
if c.String("cmd") != "" {
plot.Steps.Values["ferk"].Protoformula.Action = wfapi.Action{
plot.Steps.Values[wfapi.StepName(stepName)].Protoformula.Action = wfapi.Action{
Exec: &wfapi.Action_Exec{
Command: strings.Split(c.String("cmd"), " "),
},
Expand All @@ -116,8 +116,8 @@ func cmdFerk(c *cli.Context) error {
port := wfapi.SandboxPort{
SandboxPath: &sandboxPath,
}
plot.Steps.Values["ferk"].Protoformula.Inputs.Keys = append(plot.Steps.Values["ferk"].Protoformula.Inputs.Keys, port)
plot.Steps.Values["ferk"].Protoformula.Inputs.Values[port] = wfapi.PlotInput{
plot.Steps.Values[wfapi.StepName(stepName)].Protoformula.Inputs.Keys = append(plot.Steps.Values[wfapi.StepName(stepName)].Protoformula.Inputs.Keys, port)
plot.Steps.Values[wfapi.StepName(stepName)].Protoformula.Inputs.Values[port] = wfapi.PlotInput{
PlotInputSimple: &wfapi.PlotInputSimple{
Mount: &wfapi.Mount{
Mode: "rw",
Expand Down

0 comments on commit 92d2374

Please sign in to comment.