Add sample_default for thread_pool_size Opt

When generating a sample config, this shows
the real default behavior rather than recording
a number at sample config generation time.

Change-Id: I39e5200f795b52e61ab424a5fda4749086e458e2
This commit is contained in:
Eric Harney 2019-02-27 14:48:10 -05:00
parent 130d7155c4
commit e7e77096f2
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ OPTS = [
help=_("The number of threads available for privsep to " help=_("The number of threads available for privsep to "
"concurrently run processes. Defaults to the number of " "concurrently run processes. Defaults to the number of "
"CPU cores in the system."), "CPU cores in the system."),
default=multiprocessing.cpu_count()), default=multiprocessing.cpu_count(),
sample_default='multiprocessing.cpu_count()'),
cfg.StrOpt('helper_command', cfg.StrOpt('helper_command',
help=_('Command to invoke to start the privsep daemon if ' help=_('Command to invoke to start the privsep daemon if '
'not using the "fork" method. ' 'not using the "fork" method. '