(self, scope)
return None
Returns all projects in the domain
Returns all projects in the domain
Returns all projects in the domain
def get_all_projects(self, scope):
        """
        Returns all projects in the domain
        """
        url = "{0}/{1}/{2}".format(self.keystone_server_url, DEFAULT_KEYSTONE_API_VERSION, "projects")
        headers = {'X-Auth-Token': scope.auth_token}
        try:
            r = self._make_request_with_auth_fallback(url, headers)
            return r['projects']

        except Exception as e:
            self.warning('Unable to get projects: %s', e)
            raise e

        return None
def get_all_projects ( self , scope ) : url = "{0}/{1}/{2}" . format ( self . keystone_server_url , DEFAULT_KEYSTONE_API_VERSION , "projects" ) headers = { 'X-Auth-Token' : scope . auth_token } try : r = self . _make_request_with_auth_fallback ( url , headers ) return r [ 'projects' ] except Exception as e : self . warning ( 'Unable to get projects: %s' , e ) raise e return None