Update utils.go

This commit is contained in:
ilya guterman 2019-08-06 13:29:37 +03:00 committed by Ilya Guterman
parent c4b4d7fa43
commit 92ce8a0a49

View file

@ -236,9 +236,9 @@ func parseVolumeSpecWindows(volBind string) (hostPath string, containerPath stri
if len(parts) < 2 {
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
// 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]