Skip to content

Commit

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

Expand Down

0 comments on commit 360ad28

Please sign in to comment.