提交 e5cdce4e 编写于 作者: N Natanael Arndt 提交者: Muayyad Alsadi

default to an empty dict for the from service if the service is None

Signed-off-by: NNatanael Arndt <arndtn@gmail.com>
上级 280f1770
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册