diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-03-14 09:54:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-03-14 09:54:22 +0000 |
commit | 39cfb89094b7bc2d8faa6961b001e311c47f3be9 (patch) | |
tree | 084d0f8e282b3472d3201a1fa2e01907d97e463b | |
parent | abb49669a91610f36d70e578877f323095607273 (diff) | |
parent | 73969be4141088936e9fb2dff7d7a59c08d3f9ea (diff) | |
download | heat-39cfb89094b7bc2d8faa6961b001e311c47f3be9.tar.gz |
Merge "Make auth_url lookup dynamic" into stable/liberty
-rw-r--r-- | heat/common/auth_url.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/heat/common/auth_url.py b/heat/common/auth_url.py index 5a10280e8..877e212cd 100644 --- a/heat/common/auth_url.py +++ b/heat/common/auth_url.py @@ -28,7 +28,13 @@ class AuthUrlFilter(wsgi.Middleware): def __init__(self, app, conf): super(AuthUrlFilter, self).__init__(app) self.conf = conf - self.auth_url = self._get_auth_url() + self._auth_url = None + + @property + def auth_url(self): + if not self._auth_url: + self._auth_url = self._get_auth_url() + return self._auth_url def _get_auth_url(self): if 'auth_uri' in self.conf: |