Merge pull request #13684 from lizf-os/cleanup-verify-volumes-info

Cleanup Daemon.verifyVolumesInfo() a bit
This commit is contained in:
Brian Goff 2015-06-04 15:39:31 -07:00
commit a2602c617d
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func (daemon *Daemon) verifyVolumesInfo(container *Container) error {
for destination, hostPath := range vols.Volumes {
vfsPath := filepath.Join(daemon.root, "vfs", "dir")
rw := vols.VolumesRW != nil && vols.VolumesRW[destination]
rw := vols.VolumesRW[destination]
if strings.HasPrefix(hostPath, vfsPath) {
id := filepath.Base(hostPath)