From 8a24a752f45bbfa5e078d28d0943575a38476c9a Mon Sep 17 00:00:00 2001 From: Eric Hamilton Date: Thu, 19 Sep 2019 17:54:38 -0700 Subject: [PATCH] Accept strings for bool phase arguments --- pkg/function/args.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/function/args.go b/pkg/function/args.go index 0e458f72a7..af4190cf83 100644 --- a/pkg/function/args.go +++ b/pkg/function/args.go @@ -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