summaryrefslogtreecommitdiffstats
path: root/tpl/urls/urls.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/urls/urls.go')
-rw-r--r--tpl/urls/urls.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/tpl/urls/urls.go b/tpl/urls/urls.go
index 754114b2b..eaa6538b3 100644
--- a/tpl/urls/urls.go
+++ b/tpl/urls/urls.go
@@ -126,7 +126,13 @@ func (ns *Namespace) refArgsToMap(args interface{}) (map[string]interface{}, err
s string
of string
)
- switch v := args.(type) {
+
+ v := args
+ if _, ok := v.([]interface{}); ok {
+ v = cast.ToStringSlice(v)
+ }
+
+ switch v := v.(type) {
case map[string]interface{}:
return v, nil
case map[string]string:
@@ -152,6 +158,7 @@ func (ns *Namespace) refArgsToMap(args interface{}) (map[string]interface{}, err
}
}
+
return map[string]interface{}{
"path": s,
"outputFormat": of,