mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-18 01:20:01 +02:00
Fix relative host path resolution for volume bind mount source
e03d675b9b
broke relative host path resolution by deleting os.chdir(). After this commit current working directory is not relevant anymore. Fixese03d675b9b
. Signed-off-by: Monika Kairaityte <monika@kibit.lt>
This commit is contained in:
@@ -421,6 +421,7 @@ async def assert_volume(compose: PodmanCompose, mount_dict: dict[str, Any]) -> N
|
||||
os.makedirs(mount_src, exist_ok=True)
|
||||
except OSError:
|
||||
pass
|
||||
mount_dict["source"] = mount_src
|
||||
return
|
||||
if mount_dict["type"] != "volume" or not vol or not vol.get("name"):
|
||||
return
|
||||
|
Reference in New Issue
Block a user