From 31dedd8bddc789ed03864c6280ba119f9c24d90c Mon Sep 17 00:00:00 2001 From: Mazz Mosley Date: Thu, 2 Jul 2015 14:28:44 +0100 Subject: [PATCH] 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 --- compose/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/config.py b/compose/config.py index f1883e693..a5fe5b3ef 100644 --- a/compose/config.py +++ b/compose/config.py @@ -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):