Skip to content

Commit

Permalink
Duplicate delete the user_project_metadata.
Browse files Browse the repository at this point in the history
When assignment backend is sql,duplicate delete the user_project_metadata
filter with project_id when delete project.No need to do this.

This patch fix the bug.

Change-Id: Ic90798737b3f7f4418ce6ffbf1d9c945449798ca
Closes-Bug: #1248037
  • Loading branch information
huangtianhua committed Nov 5, 2013
1 parent 6751c7d commit caaf0ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions keystone/assignment/backends/sql.py
Expand Up @@ -423,10 +423,6 @@ def delete_project(self, tenant_id):
q = q.filter_by(project_id=tenant_id)
q.delete(False)

q = session.query(UserProjectGrant)
q = q.filter_by(project_id=tenant_id)
q.delete(False)

q = session.query(GroupProjectGrant)
q = q.filter_by(project_id=tenant_id)
q.delete(False)
Expand Down

0 comments on commit caaf0ae

Please sign in to comment.