mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 16:03:16 +01:00
Fix external volume name when no name provided
This commit is contained in:
parent
0b5c844431
commit
ed302ca518
@ -192,7 +192,7 @@ def fix_mount_dict(compose, mount_dict, proj_name, srv_name):
|
||||
ext_name = (
|
||||
external.get("name", None) if isinstance(external, dict) else None
|
||||
)
|
||||
vol["name"] = ext_name if ext_name else f"{proj_name}_{source}"
|
||||
vol["name"] = ext_name if ext_name else f"{source}"
|
||||
return mount_dict
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user