From 06485b671ef428470c31611cca0b284511588570 Mon Sep 17 00:00:00 2001 From: alsadi Date: Sat, 23 Mar 2019 22:16:30 +0200 Subject: [PATCH] Fixes #3: look for .yaml file --- podman-compose.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/podman-compose.py b/podman-compose.py index aaa1cbd..c1a7c90 100755 --- a/podman-compose.py +++ b/podman-compose.py @@ -354,6 +354,13 @@ def compose( no_ansi, no_cleanup, dry_run, transform_policy, podman_path, host_env=None, ): + if not os.path.exists(filename): + alt_path = filename.replace('.yml', '.yaml') + if os.path.exists(alt_path): + filename = alt_path + else: + print("file [{}] not found".format(filename)) + exit(-1) filename = os.path.realpath(filename) dirname = os.path.dirname(filename) dir_basename = os.path.basename(dirname)