mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-28 01:29:11 +01:00
return mount_dict as is
This commit is contained in:
parent
9294bea425
commit
6c097fdb6c
@ -338,7 +338,7 @@ def mount_dict_vol_to_bind(mount_dict, podman_path, proj_name, shared_vols):
|
|||||||
create volume if needed
|
create volume if needed
|
||||||
and return mount_dict as bind of that directory
|
and return mount_dict as bind of that directory
|
||||||
"""
|
"""
|
||||||
if mount_dict["type"]!="volume": return
|
if mount_dict["type"]!="volume": return mount_dict
|
||||||
vol_name = mount_dict["source"]
|
vol_name = mount_dict["source"]
|
||||||
print("podman volume inspect {vol_name} || podman volume create {vol_name}".format(vol_name=vol_name))
|
print("podman volume inspect {vol_name} || podman volume create {vol_name}".format(vol_name=vol_name))
|
||||||
try: out = subprocess.check_output([podman_path, "volume", "inspect", vol_name])
|
try: out = subprocess.check_output([podman_path, "volume", "inspect", vol_name])
|
||||||
|
Loading…
Reference in New Issue
Block a user