Skip to content

Commit

Permalink
fix the name syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Jun 21, 2023
1 parent 8ce37cf commit bdc0bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/argoworkflow/workflow_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func GetOutputsWithTarget(wf *wfv1.Workflow, target string) map[string]template.
for i, output := range outputs {
if output.File != "" {
output.File = target + output.File
} else if strings.HasSuffix(i, ".md") {
} else if strings.HasSuffix(i, "_md") {
output.Kind = "markdown"
}
outputs[i] = output
Expand Down
6 changes: 3 additions & 3 deletions cmd/argoworkflow/workflow_output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func TestGetOutputsWithTarget(t *testing.T) {
}},
},
},
"report.md": wfv1.NodeStatus{
Name: "report.md",
"report_md": wfv1.NodeStatus{
Name: "report_md",
Outputs: &wfv1.Outputs{
Parameters: []wfv1.Parameter{{
Name: "report.md",
Name: "report_md",
Value: wfv1.AnyStringPtr("## Report\n"),
}},
},
Expand Down

0 comments on commit bdc0bb2

Please sign in to comment.