def keystone_v3_endpoint(self): if self.auth_url: return self.auth_url.replace('v2.0', 'v3') else: auth_uri = endpoint_utils.get_auth_uri() if auth_uri: return auth_uri else: LOG.error('Keystone API endpoint not provided. Set ' 'auth_uri in section [clients_keystone] ' 'of the configuration file.') raise exception.AuthorizationFailure()
def _conf_get_auth_uri(self): auth_uri = self._conf_get('auth_uri') if auth_uri: return auth_uri.replace('v2.0', 'v3') else: return endpoint_utils.get_auth_uri()
def _get_auth_url(self): if "auth_uri" in self.conf: return self.conf["auth_uri"] else: return endpoint_utils.get_auth_uri(v3=False)
def _get_auth_url(self): if 'auth_uri' in self.conf: return self.conf['auth_uri'] else: return endpoint_utils.get_auth_uri(v3=False)
def _conf_get_auth_uri(self): auth_uri = self._conf_get("auth_uri") if auth_uri: return auth_uri.replace("v2.0", "v3") else: return endpoint_utils.get_auth_uri()