mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
Convert password policy integer values to unicode instead of str.
This commit is contained in:
parent
3785ec49ab
commit
c0c86232f4
@ -43,11 +43,11 @@ _global=u'global'
|
||||
def _convert_time_for_output(entry_attrs):
|
||||
# Convert seconds to hours and days for displaying to user
|
||||
if 'krbmaxpwdlife' in entry_attrs:
|
||||
entry_attrs['krbmaxpwdlife'][0] = str(
|
||||
entry_attrs['krbmaxpwdlife'][0] = unicode(
|
||||
int(entry_attrs['krbmaxpwdlife'][0]) / 86400
|
||||
)
|
||||
if 'krbminpwdlife' in entry_attrs:
|
||||
entry_attrs['krbminpwdlife'][0] = str(
|
||||
entry_attrs['krbminpwdlife'][0] = unicode(
|
||||
int(entry_attrs['krbminpwdlife'][0]) / 3600
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user