mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Handle nolog list containing None values
Fixes: https://fedorahosted.org/freeipa/ticket/856
This commit is contained in:
parent
0eda5918f0
commit
740b689696
@ -136,6 +136,8 @@ def run(args, stdin=None, raiseonerr=True,
|
|||||||
# to log. Run through the nolog items.
|
# to log. Run through the nolog items.
|
||||||
args = ' '.join(args)
|
args = ' '.join(args)
|
||||||
for value in nolog:
|
for value in nolog:
|
||||||
|
if not isinstance(value, basestring):
|
||||||
|
continue
|
||||||
args = args.replace(value, 'XXXXXXXX')
|
args = args.replace(value, 'XXXXXXXX')
|
||||||
stdout = stdout.replace(value, 'XXXXXXXX')
|
stdout = stdout.replace(value, 'XXXXXXXX')
|
||||||
stderr = stderr.replace(value, 'XXXXXXXX')
|
stderr = stderr.replace(value, 'XXXXXXXX')
|
||||||
|
Loading…
Reference in New Issue
Block a user