mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
podman: honor --storage-opt again
possibly a regression after we moved to Cobra Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user