Parcourir la source

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 <[email protected]>
Mazz Mosley il y a 10 ans
Parent
commit
31dedd8bdd
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      compose/config.py

+ 2 - 2
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):