Fix encoding of the TOUCH value (python3)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Benjamin Renard 2022-08-29 09:44:36 +02:00
parent cdf35ecd5a
commit f1a1cc3193

View file

@ -46,7 +46,7 @@ from ldap.controls import SimplePagedResultsControl
from ldap import modlist
VERSION = '0.0'
TOUCH_VALUE = '%%TOUCH%%'
TOUCH_VALUE = b'%%TOUCH%%'
parser = argparse.ArgumentParser(
description=(
@ -204,10 +204,10 @@ parser.add_argument(
type=str,
help=(
'Touch attribute giving in parameter to force resync a this LDAP '
f'object from provider. A value "{TOUCH_VALUE}" will be add to this '
'attribute and remove after. The user use to connect to the LDAP '
'directory must have write permission on this attribute on each '
'object.'
f'object from provider. A value "{TOUCH_VALUE.decode()}" will be '
'add to this attribute and remove after. The user use to connect '
'to the LDAP directory must have write permission on this '
'attribute on each object.'
),
default=None
)