(self)
Returns all projects in the domain
Returns all projects in the domain
Returns all projects in the domain
def get_projects(self):
        """
        Returns all projects in the domain
        """
        url = urljoin(self.keystone_endpoint, "{}/{}".format(DEFAULT_KEYSTONE_API_VERSION, "projects"))
        try:
            r = self._make_request(url)
            return r.get('projects', [])

        except Exception as e:
            self.logger.warning('Unable to get projects: %s', e)
            raise e
def get_projects ( self ) : url = urljoin ( self . keystone_endpoint , "{}/{}" . format ( DEFAULT_KEYSTONE_API_VERSION , "projects" ) ) try : r = self . _make_request ( url ) return r . get ( 'projects' , [ ] ) except Exception as e : self . logger . warning ( 'Unable to get projects: %s' , e ) raise e