Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix extend be runnable using an empty service (placeholder) #735

Conversation

white-gecko
Copy link
Contributor

Includes the case of #734 as test and fix it.
Fix #734.

Signed-off-by: Natanael Arndt <arndtn@gmail.com>
Signed-off-by: Natanael Arndt <arndtn@gmail.com>
@@ -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, {})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just make it like this

            from_service = content.get(from_service_name, {}) or {}

Signed-off-by: Natanael Arndt <arndtn@gmail.com>
@white-gecko white-gecko force-pushed the feature/support_extends_with_empty_service branch from 7f21c79 to a59fe73 Compare July 26, 2023 14:30
@muayyad-alsadi muayyad-alsadi merged commit 0164c1d into containers:devel Jul 26, 2023
8 checks passed
@white-gecko white-gecko deleted the feature/support_extends_with_empty_service branch July 26, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails if an extended service is empty
2 participants