예제 #1
0
def revoke_certs_by_user(user_id):
    """Revoke all user certs."""
    admin = context.get_admin_context()
    for cert in db.certificate_get_all_by_user(admin, user_id):
        revoke_cert(cert['project_id'], cert['file_name'])
예제 #2
0
파일: crypto.py 프로젝트: zlzlnet/nova
def revoke_certs_by_user(user_id):
    """Revoke all user certs."""
    admin = context.get_admin_context()
    for cert in db.certificate_get_all_by_user(admin, user_id):
        revoke_cert(cert['project_id'], cert['file_name'])
예제 #3
0
파일: crypto.py 프로젝트: septimius/nova
def revoke_certs_by_user_and_project(user_id, project_id):
    """Revoke certs for user in project"""
    admin = context.get_admin_context()
    for cert in db.certificate_get_all_by_user(admin, user_id, project_id):
        revoke_cert(cert['project_id'], cert['file_name'])