mirror of https://github.com/docker/compose.git
Rename function process to validate
The process function contained purely validation checks, so re-named the function to aid intent clarity. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
parent
db7e5124f3
commit
31dedd8bdd
|
@ -158,7 +158,7 @@ class ServiceLoader(object):
|
|||
if 'extends' not in service_dict:
|
||||
return service_dict
|
||||
|
||||
extends_options = process_extends_options(service_dict['name'], service_dict['extends'])
|
||||
extends_options = validate_extends_options(service_dict['name'], service_dict['extends'])
|
||||
|
||||
if self.working_dir is None:
|
||||
raise Exception("No working_dir passed to ServiceLoader()")
|
||||
|
@ -190,7 +190,7 @@ class ServiceLoader(object):
|
|||
return (self.filename, name)
|
||||
|
||||
|
||||
def process_extends_options(service_name, extends_options):
|
||||
def validate_extends_options(service_name, extends_options):
|
||||
error_prefix = "Invalid 'extends' configuration for %s:" % service_name
|
||||
|
||||
if not isinstance(extends_options, dict):
|
||||
|
|
Loading…
Reference in New Issue