Fix build section without context.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
740329a131
commit
532dffd688
4 changed files with 22 additions and 4 deletions
|
|
@ -874,6 +874,9 @@ def validate_paths(service_dict):
|
|||
build_path = build
|
||||
elif isinstance(build, dict) and 'context' in build:
|
||||
build_path = build['context']
|
||||
else:
|
||||
# We have a build section but no context, so nothing to validate
|
||||
return
|
||||
|
||||
if (
|
||||
not is_url(build_path) and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue