Skip to content

Commit

Permalink
refactor(podman_compose): simplify the expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Tql-ws1 committed Sep 10, 2024
1 parent 229650c commit 621ca55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def fix_mount_dict(compose, mount_dict, srv_name):
if mount_dict["type"] == "volume":
vols = compose.vols
source = mount_dict.get("source", None)
vol = (vols.get(source, None) or {}) if source else {}
vol = vols.get(source, {}) if source else {}
name = vol.get("name", None)
mount_dict["_vol"] = vol
# handle anonymous or implied volume
Expand Down

0 comments on commit 621ca55

Please sign in to comment.