mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-23 00:13:25 +01:00
empty options
This commit is contained in:
parent
a29cf06436
commit
9294bea425
@ -75,7 +75,8 @@ def parse_short_mount(mount_str, basedir):
|
||||
# Named volume
|
||||
# - datavolume:/var/lib/mysql
|
||||
mount_type = "volume"
|
||||
for opt in mount_opt.split(','):
|
||||
mount_opts = filter(lambda i:i, (mount_opt or '').split(','))
|
||||
for opt in mount_opts:
|
||||
if opt=='ro': mount_opt_dict["read_only"]=True
|
||||
elif opt=='rw': mount_opt_dict["read_only"]=False
|
||||
elif propagation_re.match(opt): mount_opt_dict["bind"]=dict(propagation=opt)
|
||||
|
Loading…
Reference in New Issue
Block a user