Skip to content

Commit

Permalink
Update utils.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaiqoqo committed Aug 12, 2019
1 parent 360ad28 commit 0f47a7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/docker/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 0f47a7d

Please sign in to comment.