add comment

This commit is contained in:
Ilya Guterman
2019-08-01 20:50:42 +03:00
parent 9bfff00345
commit 360ad287e7

View File

@@ -237,6 +237,8 @@ func parseVolumeSpecWindows(volBind string) (hostPath string, containerPath stri
return "", "", "", fmt.Errorf("not <src>:<destination> 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]