mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
add comment
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user