summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-02-15 19:43:00 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-15 19:43:03 +0100
commitde146b0a2d78c68a5048d802648b96419e96aae8 (patch)
tree09ef3730c03f8644a8888bab284dd2abff002d92
parent40c6d5c98c04870e814ff99acda03ad5c6c23cdc (diff)
downloadpodman-de146b0a2d78c68a5048d802648b96419e96aae8.tar.gz
podman-de146b0a2d78c68a5048d802648b96419e96aae8.tar.bz2
podman-de146b0a2d78c68a5048d802648b96419e96aae8.zip
podman: honor --storage-opt again
possibly a regression after we moved to Cobra Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-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
}