Skip to content

Commit

Permalink
Handle more input default types.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgavin committed Oct 15, 2024
1 parent 28ae6fd commit 5415706
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ func ReadWorkflow(name string, rawWorkflow []byte) (*Workflow, error) {
}
}
if inputDefault, ok := mapInputConfiguration["default"]; ok {
if input.Default, ok = inputDefault.(string); !ok {
return nil, errors.Errorf("Input default for %s had unexpected type %T.", input.Name, inputDefault)
}
input.Default = fmt.Sprintf("%v", inputDefault)
}
workflow.Inputs = append(workflow.Inputs, input)
}
Expand Down

0 comments on commit 5415706

Please sign in to comment.