Use "address" func when it's possible

Change-Id: I8c311a496830a7890cef6ad854bb1770ae2eb3b5
This commit is contained in:
Andrey Pavlov 2016-12-05 08:58:48 +00:00
parent f1b3aceed7
commit 0bdba8b650
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ SECRET_KEY = "{{ horizon.secret_key }}"
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '{{ address("memcached") }}:{{ memcached.port.cont }}',
'LOCATION': '{{ address("memcached", memcached.port) }}',
},
}
@ -149,7 +149,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
#]
OPENSTACK_HOST = "{{ address('keystone') }}"
OPENSTACK_KEYSTONE_URL = "http://%s:{{ keystone.public_port.cont }}/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_URL = "{{ address('keystone', keystone.public_port, with_scheme=True) }}/v3"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
# Enables keystone web single-sign-on if set to True.