Merge "Update project list in the header bar."

This commit is contained in:
Jenkins 2015-07-02 14:40:29 +00:00 committed by Gerrit Code Review
commit 1405992717
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ class DeleteTenantsAction(tables.DeleteAction):
def handle(self, table, request, obj_ids):
response = \
super(DeleteTenantsAction, self).handle(table, request, obj_ids)
auth_utils.remove_project_cache(request.user.token.id)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
return response

View File

@ -499,7 +499,7 @@ class CreateProject(CommonQuotaWorkflow):
% {'users_to_add': users_to_add,
'group_msg': group_msg})
finally:
auth_utils.remove_project_cache(request.user.token.id)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id):
# update project groups
@ -762,7 +762,7 @@ class UpdateProject(CommonQuotaWorkflow):
'group_msg': group_msg})
return False
finally:
auth_utils.remove_project_cache(request.user.token.id)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id, domain_id):
# update project groups