mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-23 22:39:04 +01:00
add fallback to get
This commit is contained in:
parent
56a4988481
commit
a1be5ce6b3
@ -303,10 +303,10 @@ def assert_volume(compose, mount_dict):
|
|||||||
]
|
]
|
||||||
for item in norm_as_list(labels):
|
for item in norm_as_list(labels):
|
||||||
args.extend(["--label", item])
|
args.extend(["--label", item])
|
||||||
driver = vol.get("driver")
|
driver = vol.get("driver", None)
|
||||||
if driver:
|
if driver:
|
||||||
args.extend(["--driver", driver])
|
args.extend(["--driver", driver])
|
||||||
driver_opts = vol.get("driver_opts", {})
|
driver_opts = vol.get("driver_opts", None) or {}
|
||||||
for opt, value in driver_opts.items():
|
for opt, value in driver_opts.items():
|
||||||
args.extend(["--opt", "{opt}={value}".format(opt=opt, value=value)])
|
args.extend(["--opt", "{opt}={value}".format(opt=opt, value=value)])
|
||||||
args.append(vol_name)
|
args.append(vol_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user