From 4c8edc16fee6d3562546d058f3ec0ceff63d1f7a Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Thu, 2 Sep 2021 15:34:19 -0700 Subject: [PATCH] Changed API name to valid path --- internal/app/wwctl/container/exec/child/main.go | 2 +- internal/pkg/util/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/wwctl/container/exec/child/main.go b/internal/app/wwctl/container/exec/child/main.go index 194e7635..3a418ec1 100644 --- a/internal/app/wwctl/container/exec/child/main.go +++ b/internal/app/wwctl/container/exec/child/main.go @@ -38,7 +38,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error { var source string var dest string - bind := util.SplitPaths(b, ":") + bind := util.SplitValidPaths(b, ":") source = bind[0] if len(bind) == 1 { diff --git a/internal/pkg/util/util.go b/internal/pkg/util/util.go index 8ac6b2c7..73c7b74c 100644 --- a/internal/pkg/util/util.go +++ b/internal/pkg/util/util.go @@ -337,7 +337,7 @@ func SplitEscaped(input, delim, escape string) []string { return (ret) } -func SplitPaths(input, delim string) []string { +func SplitValidPaths(input, delim string) []string { var ret []string str := "" for i := 1; i < len(input); i++ {