From 9fdee76858bfcd44bb3cd032f0ac59b670be22bf Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Wed, 31 Jul 2024 07:10:57 +0000 Subject: [PATCH] Initialize default values in PodmanCompose constructor Signed-off-by: legobt <6wbvkn0j@anonaddy.me> --- podman_compose.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 60db85c..6c6730c 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1667,11 +1667,11 @@ class PodmanCompose: self.environ = {} self.exit_code = None self.commands = {} - self.global_args = None + self.global_args = argparse.Namespace() self.project_name = None self.dirname = None self.pods = None - self.containers = None + self.containers = [] self.vols = None self.networks = {} self.default_net = "default"