mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-09 17:41:03 +02:00
Simplify the fix using or
.
Signed-off-by: Natanael Arndt <arndtn@gmail.com>
This commit is contained in:
parent
e5cdce4e7d
commit
0164c1db56
@ -1375,11 +1375,7 @@ def resolve_extends(services, service_names, environ):
|
|||||||
content = content["services"]
|
content = content["services"]
|
||||||
subdirectory = os.path.dirname(filename)
|
subdirectory = os.path.dirname(filename)
|
||||||
content = rec_subs(content, environ)
|
content = rec_subs(content, environ)
|
||||||
from_service = (
|
from_service = content.get(from_service_name, {}) or {}
|
||||||
{}
|
|
||||||
if content.get(from_service_name, {}) is None
|
|
||||||
else content.get(from_service_name, {})
|
|
||||||
)
|
|
||||||
normalize_service(from_service, subdirectory)
|
normalize_service(from_service, subdirectory)
|
||||||
else:
|
else:
|
||||||
from_service = services.get(from_service_name, {}).copy()
|
from_service = services.get(from_service_name, {}).copy()
|
||||||
|
Loading…
Reference in New Issue
Block a user