mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-23 14:28:46 +01:00
default to an empty dict for the from service if the service is None
Signed-off-by: Natanael Arndt <arndtn@gmail.com>
This commit is contained in:
parent
280f1770bf
commit
e5cdce4e7d
@ -1375,7 +1375,11 @@ def resolve_extends(services, service_names, environ):
|
||||
content = content["services"]
|
||||
subdirectory = os.path.dirname(filename)
|
||||
content = rec_subs(content, environ)
|
||||
from_service = content.get(from_service_name, {})
|
||||
from_service = (
|
||||
{}
|
||||
if content.get(from_service_name, {}) is None
|
||||
else content.get(from_service_name, {})
|
||||
)
|
||||
normalize_service(from_service, subdirectory)
|
||||
else:
|
||||
from_service = services.get(from_service_name, {}).copy()
|
||||
|
Loading…
Reference in New Issue
Block a user