Browse Source

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
Eric Harney 1 month ago
parent
commit
e7e77096f2
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      oslo_privsep/priv_context.py

+ 2
- 1
oslo_privsep/priv_context.py View File

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

Loading…
Cancel
Save