Check if composeinfo-base.json exists before creating it.
Previously, we checked only for `compose_dir`, but it makes more sense to really check for `composeinfo-base.json` instead. Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
parent
658a5f805f
commit
b6573fab92
1 changed files with 2 additions and 1 deletions
|
|
@ -279,7 +279,8 @@ def main():
|
|||
)
|
||||
else:
|
||||
compose_dir = opts.compose_dir
|
||||
if not os.path.exists(compose_dir):
|
||||
ci_path = os.path.join(compose_dir, "work", "global", "composeinfo-base.json")
|
||||
if not os.path.exists(ci_path):
|
||||
ci = Compose.get_compose_info(
|
||||
conf, compose_type=compose_type, compose_label=opts.label
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue