summaryrefslogtreecommitdiffstats
path: root/tpl/path/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/path/path.go')
-rw-r--r--tpl/path/path.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tpl/path/path.go b/tpl/path/path.go
index fabf15018..f975726cc 100644
--- a/tpl/path/path.go
+++ b/tpl/path/path.go
@@ -121,6 +121,10 @@ func (ns *Namespace) Join(elements ...interface{}) (string, error) {
var pathElements []string
for _, elem := range elements {
switch v := elem.(type) {
+ case []string:
+ for _, e := range v {
+ pathElements = append(pathElements, filepath.ToSlash(e))
+ }
case []interface{}:
for _, e := range v {
elemStr, err := cast.ToStringE(e)