mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix replica with --setup-ca issues
nolog argument of ipautil.run requires tuple, not a string. https://fedorahosted.org/freeipa/ticket/5695 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
79c0e6d355
commit
052de4308c
@ -207,7 +207,7 @@ class PEMFileHandler(DBMAPHandler):
|
||||
args.extend(["-inkey", self.keyfile])
|
||||
|
||||
try:
|
||||
ipautil.run(args, nolog=password)
|
||||
ipautil.run(args, nolog=(password, ))
|
||||
with open(tmpfile, 'r') as f:
|
||||
data = f.read()
|
||||
finally:
|
||||
@ -231,7 +231,7 @@ class PEMFileHandler(DBMAPHandler):
|
||||
"-clcerts", "-nokeys",
|
||||
"-out", self.certfile,
|
||||
"-passin", "pass:{pwd}".format(pwd=password)],
|
||||
nolog=(password))
|
||||
nolog=(password, ))
|
||||
|
||||
if self.keyfile is not None:
|
||||
# get the private key from the file
|
||||
@ -241,7 +241,7 @@ class PEMFileHandler(DBMAPHandler):
|
||||
"-nocerts", "-nodes",
|
||||
"-out", self.keyfile,
|
||||
"-passin", "pass:{pwd}".format(pwd=password)],
|
||||
nolog=(password))
|
||||
nolog=(password, ))
|
||||
finally:
|
||||
os.remove(tmpdata)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user