From 92ce8a0a49dfcd8ec1fd6453326046bc1a250ab5 Mon Sep 17 00:00:00 2001 From: ilya guterman <37104894+ilyaiqoqo@users.noreply.github.com> Date: Tue, 6 Aug 2019 13:29:37 +0300 Subject: [PATCH] Update utils.go --- drivers/docker/utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/docker/utils.go b/drivers/docker/utils.go index eebce3b58..be58dea30 100644 --- a/drivers/docker/utils.go +++ b/drivers/docker/utils.go @@ -236,9 +236,9 @@ func parseVolumeSpecWindows(volBind string) (hostPath string, containerPath stri if len(parts) < 2 { 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 + + // In order to be OS agnostic, the host mount path should support either forward or backward slash. + // These will later to converted to OS specific slash in the agent side hostPath = filepath.FromSlash(parts[0]) containerPath = parts[1]