Skip to content

Commit

Permalink
default to an empty dict for the from service if the service is None
Browse files Browse the repository at this point in the history
Signed-off-by: Natanael Arndt <[email protected]>
  • Loading branch information
white-gecko authored and muayyad-alsadi committed Jul 26, 2023
1 parent 280f177 commit e5cdce4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e5cdce4

Please sign in to comment.