forked from extern/podman-compose
Fixes #3: look for .yaml file
This commit is contained in:
parent
732214db07
commit
06485b671e
@ -354,6 +354,13 @@ def compose(
|
|||||||
no_ansi, no_cleanup, dry_run,
|
no_ansi, no_cleanup, dry_run,
|
||||||
transform_policy, podman_path, host_env=None,
|
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)
|
filename = os.path.realpath(filename)
|
||||||
dirname = os.path.dirname(filename)
|
dirname = os.path.dirname(filename)
|
||||||
dir_basename = os.path.basename(dirname)
|
dir_basename = os.path.basename(dirname)
|
||||||
|
Loading…
Reference in New Issue
Block a user