From ce26ded74bf8c4b766ac6768eff3c8d7dbd22e85 Mon Sep 17 00:00:00 2001 From: Sam Chow Date: Tue, 5 Jun 2018 11:41:35 -0400 Subject: [PATCH] Constructor for ValidatorContext returns instance --- util/config/validator.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/util/config/validator.py b/util/config/validator.py index c31f09851..6b0640c1a 100644 --- a/util/config/validator.py +++ b/util/config/validator.py @@ -131,18 +131,18 @@ class ValidatorContext(object): """ url_scheme_and_hostname = URLSchemeAndHostname.from_app_config(app.config) - cls(config, - user_password, - client or app.config['HTTPCLIENT'], - app.app_context, - url_scheme_and_hostname, - app.config.get('JWT_AUTH_MAX_FRESH_S', 300), - app.config['REGISTRY_TITLE'], - ip_resolver, - app.config.get('FEATURE_SECURITY_SCANNER', False), - app.config.get('TESTING', False), - get_blob_download_uri_getter(app.test_request_context('/'), url_scheme_and_hostname), - config_provider) + return cls(config, + user_password, + client or app.config['HTTPCLIENT'], + app.app_context, + url_scheme_and_hostname, + app.config.get('JWT_AUTH_MAX_FRESH_S', 300), + app.config['REGISTRY_TITLE'], + ip_resolver, + app.config.get('FEATURE_SECURITY_SCANNER', False), + app.config.get('TESTING', False), + get_blob_download_uri_getter(app.test_request_context('/'), url_scheme_and_hostname), + config_provider)