Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- creds = {
- "username": self._username,
- "password": self._password,
- "auth_url": self._auth_url
- }
- if self._project_id is None:
- creds.update({
- "tenant_id": self._tenant_id
- })
- else:
- creds.update({
- "project_id": self._project_id,
- "user_domain_id": self._user_domain_id
- })
- loader = loading.get_plugin_loader('password')
- auth = loader.load_from_options(**creds)
- sess = session.Session(auth=auth)
- self.logger.debug(
- "Looking for endpoint from %s" % sess)
- heat_endpoint = sess.get_endpoint(auth=auth,
- service_type="orchestration",
- endpoint_type='publicURL')
Advertisement
Add Comment
Please, Sign In to add comment