mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -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):
|
def _convert_time_for_output(entry_attrs):
|
||||||
# Convert seconds to hours and days for displaying to user
|
# Convert seconds to hours and days for displaying to user
|
||||||
if 'krbmaxpwdlife' in entry_attrs:
|
if 'krbmaxpwdlife' in entry_attrs:
|
||||||
entry_attrs['krbmaxpwdlife'][0] = str(
|
entry_attrs['krbmaxpwdlife'][0] = unicode(
|
||||||
int(entry_attrs['krbmaxpwdlife'][0]) / 86400
|
int(entry_attrs['krbmaxpwdlife'][0]) / 86400
|
||||||
)
|
)
|
||||||
if 'krbminpwdlife' in entry_attrs:
|
if 'krbminpwdlife' in entry_attrs:
|
||||||
entry_attrs['krbminpwdlife'][0] = str(
|
entry_attrs['krbminpwdlife'][0] = unicode(
|
||||||
int(entry_attrs['krbminpwdlife'][0]) / 3600
|
int(entry_attrs['krbminpwdlife'][0]) / 3600
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user