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:
Stanislav Laznicka
2017-03-01 14:07:44 +01:00
committed by Jan Cholasta
parent 79c0e6d355
commit 052de4308c

View File

@@ -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)