mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pwpolicy: change lifetime error message
ipa pwpolicy-mod --minlife $min --maxlife $max accepts $max >= $min, yet the error message says: "Maximum password life must be greater than minimum." Change the error message so that it conveys the actual logic. Fixes: https://pagure.io/freeipa/issue/9038 Signed-off-by: François Cami <fcami@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
4c61b9266a
commit
b8cea149c3
@ -491,7 +491,10 @@ class pwpolicy(LDAPObject):
|
||||
if minlife > maxlife:
|
||||
raise errors.ValidationError(
|
||||
name='maxlife',
|
||||
error=_('Maximum password life must be greater than minimum.'),
|
||||
error=_(
|
||||
"Maximum password life must be equal to "
|
||||
"or greater than the minimum."
|
||||
),
|
||||
)
|
||||
|
||||
def add_cospriority(self, entry, pwpolicy_name, rights=True):
|
||||
|
Loading…
Reference in New Issue
Block a user