Linter fixes

This commit is contained in:
Joseph Schorr 2016-12-09 17:36:57 -05:00
parent 65fa59fceb
commit 29d6abddb5

View file

@ -4,6 +4,7 @@ import time
from StringIO import StringIO from StringIO import StringIO
from fnmatch import fnmatch from fnmatch import fnmatch
from hashlib import sha1
import OpenSSL import OpenSSL
import ldap import ldap
@ -12,7 +13,6 @@ import redis
from flask import Flask from flask import Flask
from flask_mail import Mail, Message from flask_mail import Mail, Message
from hashlib import sha1
from app import app, config_provider, get_app_url, OVERRIDE_CONFIG_DIRECTORY from app import app, config_provider, get_app_url, OVERRIDE_CONFIG_DIRECTORY
from auth.auth_context import get_authenticated_user from auth.auth_context import get_authenticated_user
@ -54,7 +54,7 @@ def get_storage_providers(config):
try: try:
for name, parameters in storage_config.items(): for name, parameters in storage_config.items():
drivers[name] = (parameters[0], get_storage_driver(None, None, None, parameters)) drivers[name] = (parameters[0], get_storage_driver(None, None, None, parameters))
except TypeError as te: except TypeError:
logger.exception('Missing required storage configuration provider') logger.exception('Missing required storage configuration provider')
raise ConfigValidationException('Missing required parameter(s) for storage %s' % name) raise ConfigValidationException('Missing required parameter(s) for storage %s' % name)
@ -254,7 +254,7 @@ def _validate_ssl(config, user_obj, _):
return return
# Skip if externally terminated. # Skip if externally terminated.
if config.get('EXTERNAL_TLS_TERMINATION', False) == True: if config.get('EXTERNAL_TLS_TERMINATION', False) is True:
return return
for filename in SSL_FILENAMES: for filename in SSL_FILENAMES: