summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-15 20:22:06 +0100
committerGitHub <noreply@github.com>2019-02-15 20:22:06 +0100
commit9c1b08fd79012c12d478edb13f6057a0414762db (patch)
tree09ef3730c03f8644a8888bab284dd2abff002d92 /cmd/podman
parent40c6d5c98c04870e814ff99acda03ad5c6c23cdc (diff)
parentde146b0a2d78c68a5048d802648b96419e96aae8 (diff)
downloadpodman-9c1b08fd79012c12d478edb13f6057a0414762db.tar.gz
podman-9c1b08fd79012c12d478edb13f6057a0414762db.tar.bz2
podman-9c1b08fd79012c12d478edb13f6057a0414762db.zip
Merge pull request #2353 from giuseppe/honor-storage-opt
podman: honor --storage-opt again
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/libpodruntime/runtime.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/libpodruntime/runtime.go b/cmd/podman/libpodruntime/runtime.go
index 60acd1f5b..0b9568b8d 100644
--- a/cmd/podman/libpodruntime/runtime.go
+++ b/cmd/podman/libpodruntime/runtime.go
@@ -48,7 +48,7 @@ func GetRuntime(c *cliconfig.PodmanCommand) (*libpod.Runtime, error) {
if c.Flags().Changed("storage-driver") {
storageOpts.GraphDriverName = c.GlobalFlags.StorageDriver
}
- if c.Flags().Changed("storage-opt") {
+ if len(c.GlobalFlags.StorageOpts) > 0 {
storageOpts.GraphDriverOptions = c.GlobalFlags.StorageOpts
}