From 80e852717d9598ed95dd54b9c7b0ba7c99b6b5f5 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Tue, 15 Feb 2022 01:54:43 +0200 Subject: [PATCH] #379: create a pod --- podman_compose.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 37fad015..d0b50282 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -268,10 +268,12 @@ def norm_ulimit(inner_value): # return [pod], containers def tr_identity(project_name, given_containers): + pod_name = f"pod_{project_name}" + pod = dict(name=pod_name) containers = [] for cnt in given_containers: - containers.append(dict(cnt)) - return [], containers + containers.append(dict(cnt, pod=pod_name)) + return [pod], containers def assert_volume(compose, mount_dict):