def validate_extends_file_path(service_name, extends_options, filename):
 error_prefix = (u"Invalid 'extends' configuration for %s:" % service_name)
 if ((u'file' not in extends_options) and (filename is None)):
  raise ConfigurationError((u"%s you need to specify a 'file', e.g. 'file: something.yml'" % error_prefix))

def validate_extends_file_path ( service_name , extends_options , filename ) : error_prefix = ( u"Invalid 'extends' configuration for %s:" % service_name ) if ( ( u'file' not in extends_options ) and ( filename is None ) ) : raise ConfigurationError ( ( u"%s you need to specify a 'file', e.g. 'file: something.yml'" % error_prefix ) )
the service to be extended must either be defined in the config key file .