summaryrefslogtreecommitdiff
path: root/pkg/spec/spec.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-03 18:34:01 +0200
committerGitHub <noreply@github.com>2020-04-03 18:34:01 +0200
commit2d9b9e81a30ac46848587414d34955ad4cb991a7 (patch)
treea9467bc800c4441448873018912de215950d540a /pkg/spec/spec.go
parenta89d62ac3a445a5d76bd72d4b8e1bb9262ba74c6 (diff)
parente0614367ca27c2e47649e08291e0f1d19d42232e (diff)
downloadpodman-2d9b9e81a30ac46848587414d34955ad4cb991a7.tar.gz
podman-2d9b9e81a30ac46848587414d34955ad4cb991a7.tar.bz2
podman-2d9b9e81a30ac46848587414d34955ad4cb991a7.zip
Merge pull request #5676 from kolyshkin/volume-flags-alt
Fix/improve pkg/storage.InitFSMounts
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r--pkg/spec/spec.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index 4732af757..5de07fc28 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -381,11 +381,9 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM
// BIND MOUNTS
configSpec.Mounts = SupercedeUserMounts(userMounts, configSpec.Mounts)
// Process mounts to ensure correct options
- finalMounts, err := InitFSMounts(configSpec.Mounts)
- if err != nil {
+ if err := InitFSMounts(configSpec.Mounts); err != nil {
return nil, err
}
- configSpec.Mounts = finalMounts
// BLOCK IO
blkio, err := config.CreateBlockIO()