mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 16:03:16 +01:00
Use 'not in' for membership test
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
parent
36139fb282
commit
59a1fa3942
@ -1100,7 +1100,7 @@ def flat_deps(services, with_extends=False):
|
||||
for c in links_ls:
|
||||
if ":" in c:
|
||||
dep_name, dep_alias = c.split(":")
|
||||
if not "_aliases" in services[dep_name]:
|
||||
if "_aliases" not in services[dep_name]:
|
||||
services[dep_name]["_aliases"] = set()
|
||||
services[dep_name]["_aliases"].add(dep_alias)
|
||||
for name, srv in services.items():
|
||||
|
Loading…
Reference in New Issue
Block a user