Skip to content

Commit 5085853

Browse files
authored
Support uppercase mount attributes
Signed-off-by: Antonio <[email protected]>
1 parent d3dd154 commit 5085853

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

podman/domain/containers_create.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,12 @@ def to_bytes(size: Union[int, str, None]) -> Union[int, None]:
553553
args.pop("log_config")
554554

555555
for item in args.pop("mounts", []):
556+
normalized_item = {key.lower(): value for key, value in item.items()}
556557
mount_point = {
557-
"destination": item.get("target"),
558+
"destination": normalized_item.get("target"),
558559
"options": [],
559-
"source": item.get("source"),
560-
"type": item.get("type"),
560+
"source": normalized_item.get("source"),
561+
"type": normalized_item.get("type"),
561562
}
562563

563564
# some names are different for podman-py vs REST API due to compatibility with docker

0 commit comments

Comments
 (0)