Skip to content

Commit

Permalink
Add missing user_id in revoke_certs_by_user_and_project()
Browse files Browse the repository at this point in the history
The correct function signature is
revoke_certs_by_user_and_project(user_id, project_id)

Partially fix bug 1037183

Change-Id: Ia0cf350da9b6d8cab5e43c9897a1614b1b9918e1
  • Loading branch information
maoy committed Aug 24, 2012
1 parent c5fa40b commit 6e2515f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/cert/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def revoke_certs_by_project(self, context, project_id):

def revoke_certs_by_user_and_project(self, context, user_id, project_id):
"""Revoke certs for user in project."""
return crypto.revoke_certs_by_user_and_project(project_id)
return crypto.revoke_certs_by_user_and_project(user_id, project_id)

def generate_x509_cert(self, context, user_id, project_id):
"""Generate and sign a cert for user in project"""
Expand Down

0 comments on commit 6e2515f

Please sign in to comment.