From e7e77096f29fc5504231c9faca78d334347a8fc8 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 27 Feb 2019 14:48:10 -0500 Subject: [PATCH] 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 --- oslo_privsep/priv_context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oslo_privsep/priv_context.py b/oslo_privsep/priv_context.py index 0261b08..6b63335 100644 --- a/oslo_privsep/priv_context.py +++ b/oslo_privsep/priv_context.py @@ -54,7 +54,8 @@ OPTS = [ help=_("The number of threads available for privsep to " "concurrently run processes. Defaults to the number of " "CPU cores in the system."), - default=multiprocessing.cpu_count()), + default=multiprocessing.cpu_count(), + sample_default='multiprocessing.cpu_count()'), cfg.StrOpt('helper_command', help=_('Command to invoke to start the privsep daemon if ' 'not using the "fork" method. '