Skip to content

Commit

Permalink
Explicitly unset redis host
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed May 22, 2018
1 parent 91d9ed9 commit 9aa764b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions conductor/blueprints/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@

es_logger = logging.getLogger('elasticsearch')
es_logger.setLevel(logging.INFO)


2 changes: 2 additions & 0 deletions conductor/blueprints/package/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
runner = DppRunner(max_workers=4)

os.environ['DPP_DB_ENGINE'] = os.environ['OS_CONDUCTOR_ENGINE']
if 'DPP_REDIS_HOST' in os.environ:
del os.eniron['DPP_REDIS_HOST']
os.environ['ELASTICSEARCH_ADDRESS'] = os.environ['OS_ELASTICSEARCH_ADDRESS']
os.environ['AWS_ACCESS_KEY_ID'] = os.environ['OS_ACCESS_KEY_ID']
os.environ['AWS_SECRET_ACCESS_KEY'] = os.environ['OS_SECRET_ACCESS_KEY']
Expand Down
2 changes: 1 addition & 1 deletion conductor/blueprints/user/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def readfile_or_default(filename, default):
credentials = base64.decodebytes(credentials)
credentials = zlib.decompress(credentials).decode('ascii')
credentials = json.loads(credentials)
except Exception as _:
except Exception:
credentials = {}

PUBLIC_KEY = credentials.get('public.pem', '''-----BEGIN PUBLIC KEY-----
Expand Down

0 comments on commit 9aa764b

Please sign in to comment.