Remove unused exceptions from CADF notifications

This change removes exceptions that are never thrown during
authentication due to them being related to password validation
and are caught/handled elsewhere from this change:

https://review.openstack.org/#/c/396752/

Change-Id: Iab49986ec41028da5c0d45f83c0037c07434c744
This commit is contained in:
Gage Hugo 2016-12-21 18:17:33 -06:00 committed by Steve Martinelli
parent a5efb16256
commit ddff3bdf0a

View File

@ -492,10 +492,7 @@ class CadfNotificationWrapper(object):
try:
result = f(wrapped_self, request, user_id, *args, **kwargs)
except (exception.AccountLocked,
exception.PasswordExpired,
exception.PasswordRequirementsValidationError,
exception.PasswordHistoryValidationError,
exception.PasswordAgeValidationError) as ex:
exception.PasswordExpired) as ex:
# Send a CADF event with a reason for PCI-DSS related
# authentication failures
audit_reason = reason.Reason(str(ex), str(ex.code))