Remove redundant conditional for CF Redis

This is now used in all environments and we've removed support for
non-CF Redis.
This commit is contained in:
Leo Hemsted
2022-04-20 11:41:33 +01:00
parent bf083b28aa
commit 0457850fc0
2 changed files with 1 additions and 10 deletions

View File

@@ -9,5 +9,4 @@ def extract_cloudfoundry_config():
os.environ['SQLALCHEMY_DATABASE_URI'] = vcap_services['postgres'][0]['credentials']['uri'].replace('postgres',
'postgresql')
# Redis config
if 'redis' in vcap_services:
os.environ['REDIS_URL'] = vcap_services['redis'][0]['credentials']['uri']
os.environ['REDIS_URL'] = vcap_services['redis'][0]['credentials']['uri']