Skip to content

Commit

Permalink
Accept strings for bool phase arguments (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhamilton authored and mergify[bot] committed Sep 20, 2019
1 parent d8f7d76 commit 373bab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/function/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// It will return an error if the argument type does not match the result type
func Arg(args map[string]interface{}, argName string, result interface{}) error {
if val, ok := args[argName]; ok {
if err := mapstructure.Decode(val, result); err != nil {
if err := mapstructure.WeakDecode(val, result); err != nil {
return errors.Wrapf(err, "Failed to decode arg `%s`", argName)
}
return nil
Expand Down

0 comments on commit 373bab3

Please sign in to comment.