Quote multiple workers option

https://fedorahosted.org/freeipa/ticket/2023
This commit is contained in:
Alexander Bokovoy 2011-10-25 18:41:32 +03:00 committed by Martin Kosek
parent 4833b208b2
commit 9bdbdbc0f3

View File

@ -331,7 +331,7 @@ class KrbInstance(service.Service):
replacevars = {'KRB5REALM':self.realm}
appendvars = {}
if workers and cpus > 1:
appendvars = {'KRB5KDC_ARGS': "-w %s" % str(cpus)}
appendvars = {'KRB5KDC_ARGS': "'-w %s'" % str(cpus)}
ipautil.backup_config_and_replace_variables(self.fstore, "/etc/sysconfig/krb5kdc",
replacevars=replacevars,
appendvars=appendvars)