From 9ac33392a031e3bcba95fb402b002a9bcbdc8379 Mon Sep 17 00:00:00 2001 From: Ben Plessinger Date: Mon, 5 Feb 2024 15:24:32 -0500 Subject: [PATCH] Fix issue #831 Signed-off-by: Ben Plessinger --- podman_compose.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 3295bc32..bc61f115 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -3239,9 +3239,11 @@ def compose_format_parse(parser): help="Pretty-print container statistics to JSON or using a Go template", ) -async def main(): +async def async_main(): await podman_compose.run() +def main(): + asyncio.run(main()) if __name__ == "__main__": - asyncio.run(main()) + main()