diff --git a/neutron_lib/utils/host.py b/neutron_lib/utils/host.py index b6c15e4d1..a447a0b59 100644 --- a/neutron_lib/utils/host.py +++ b/neutron_lib/utils/host.py @@ -15,6 +15,11 @@ import multiprocessing def cpu_count(): + """Get the system CPU count. + + :returns: The number of CPUs on the system as an int. If there's an issue + fetching the CPU count on the system, a default value of 1 is returned. + """ try: return multiprocessing.cpu_count() except NotImplementedError: