summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-05 20:55:15 +0200
committerGitHub <noreply@github.com>2021-04-05 20:55:15 +0200
commit6b23fece7348cd52949a3dd7b7e65483e3cac19b (patch)
tree7b0216fc4797550c6f97fe8623e29bac2c1fb496 /libpod
parente9e4898048fe669263ca16929132ea63edf0ccef (diff)
parent69ace205356171835d920438fe411839c543f073 (diff)
downloadpodman-6b23fece7348cd52949a3dd7b7e65483e3cac19b.tar.gz
podman-6b23fece7348cd52949a3dd7b7e65483e3cac19b.tar.bz2
podman-6b23fece7348cd52949a3dd7b7e65483e3cac19b.zip
Merge pull request #9911 from rhatdan/storage
Allow users to override default storage opts with --storage-opt
Diffstat (limited to 'libpod')
-rw-r--r--libpod/options.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 24e9d74f4..333a7c4a5 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -77,8 +77,7 @@ func WithStorageConfig(config storage.StoreOptions) RuntimeOption {
rt.storageConfig.GraphDriverOptions = make([]string, len(config.GraphDriverOptions))
copy(rt.storageConfig.GraphDriverOptions, config.GraphDriverOptions)
} else {
- // append new options after what is specified in the config files
- rt.storageConfig.GraphDriverOptions = append(rt.storageConfig.GraphDriverOptions, config.GraphDriverOptions...)
+ rt.storageConfig.GraphDriverOptions = config.GraphDriverOptions
}
setField = true
}