Incorrect behavior of validate_password method

Logging fails when security_compliance is turn on and password_regex is
invalid.

Change-Id: I283ee3eb587199339987bb6c2c5a54d10cebaabc
This commit is contained in:
BubaVV 2019-07-01 17:00:44 +03:00
parent 163f4e4a6e
commit 72af261687
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def validate_password(password):
detail=pattern_desc)
except re.error:
msg = ("Unable to validate password due to invalid regular "
"expression - password_regex: ")
"expression - password_regex: %s")
LOG.error(msg, pattern)
detail = _("Unable to validate password due to invalid "
"configuration")