Skip to content

Commit 6e14958

Browse files
authored
Merge pull request #180 from chrisgavin/input-default-types
Handle more input default types.
2 parents 28ae6fd + 5415706 commit 6e14958

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/workflow/workflow.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ func ReadWorkflow(name string, rawWorkflow []byte) (*Workflow, error) {
132132
}
133133
}
134134
if inputDefault, ok := mapInputConfiguration["default"]; ok {
135-
if input.Default, ok = inputDefault.(string); !ok {
136-
return nil, errors.Errorf("Input default for %s had unexpected type %T.", input.Name, inputDefault)
137-
}
135+
input.Default = fmt.Sprintf("%v", inputDefault)
138136
}
139137
workflow.Inputs = append(workflow.Inputs, input)
140138
}

0 commit comments

Comments
 (0)