Merge "Use %()d for integer substitution"

This commit is contained in:
Jenkins 2016-08-03 07:52:23 +00:00 committed by Gerrit Code Review
commit 5d05551885
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class Identity(base.IdentityDriverV8):
detail = _('The new password cannot be identical to a '
'previous password. The number of previous '
'passwords that must be unique is: '
'%(unique_cnt)s') % {'unique_cnt': unique_cnt}
'%(unique_cnt)d') % {'unique_cnt': unique_cnt}
raise exception.PasswordValidationError(detail=detail)
def add_user_to_group(self, user_id, group_id):