diff options
Diffstat (limited to 'cmd/podman/parse.go')
-rw-r--r-- | cmd/podman/parse.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/podman/parse.go b/cmd/podman/parse.go index 33988a3b6..0d1a0b925 100644 --- a/cmd/podman/parse.go +++ b/cmd/podman/parse.go @@ -773,3 +773,15 @@ func stringSlicetoUint32Slice(inputSlice []string) ([]uint32, error) { } return outputSlice, nil } + +func getLoggingPath(opts []string) string { + for _, opt := range opts { + arr := strings.SplitN(opt, "=", 2) + if len(arr) == 2 { + if strings.TrimSpace(arr[0]) == "path" { + return strings.TrimSpace(arr[1]) + } + } + } + return "" +} |