From 360ad287e74c916b88697a890b5325dc6c5fa5c6 Mon Sep 17 00:00:00 2001 From: Ilya Guterman Date: Thu, 1 Aug 2019 20:50:42 +0300 Subject: [PATCH] add comment --- drivers/docker/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/docker/utils.go b/drivers/docker/utils.go index aa46495e5..eebce3b58 100644 --- a/drivers/docker/utils.go +++ b/drivers/docker/utils.go @@ -237,6 +237,8 @@ func parseVolumeSpecWindows(volBind string) (hostPath string, containerPath stri return "", "", "", fmt.Errorf("not : format") } + // for nomad to be OS agnostic the host mount path with forward or backward slash + // we then convert the slashes to OS specific slash in the agent side hostPath = filepath.FromSlash(parts[0]) containerPath = parts[1]