volume/local: Break early if addr
was specified
I made a mistake in the last commit - after resolving the IP from the
passed `addr` for CIFS it would still resolve the `device` part.
Apply only one name resolution
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit df43311f3d
)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
ac76925ff2
commit
cb77e48229
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ func (v *localVolume) mount() error {
|
||||||
return errors.Wrap(err, "error resolving passed in network volume address")
|
return errors.Wrap(err, "error resolving passed in network volume address")
|
||||||
}
|
}
|
||||||
mountOpts = strings.Replace(mountOpts, "addr="+addrValue, "addr="+ipAddr.String(), 1)
|
mountOpts = strings.Replace(mountOpts, "addr="+addrValue, "addr="+ipAddr.String(), 1)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if v.opts.MountType != "cifs" {
|
if v.opts.MountType != "cifs" {
|
||||||
|
|
Loading…
Reference in a new issue