Use multiprocessing.cpu_count instead of psutil.NUM_CPUS
psutil.NUM_CPUS has been deprecated in psutil 2.x
While currently global-requirements restrict usage of psutil to
versions <2.0.0 it can be good to be prepared for upgrade in advance.
This commit makes use of multiprocessing module instead.
Reviewed: https:/ /review. openstack. org/336619 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=8fb54da2f91 a88286fcc1b444d 26b387cd04d174
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8fb54da2f91a882 86fcc1b444d26b3 87cd04d174
Author: Kirill Zaitsev <email address hidden>
Date: Fri Jul 1 18:20:38 2016 +0300
Use multiprocessing .cpu_count instead of psutil.NUM_CPUS
psutil.NUM_CPUS has been deprecated in psutil 2.x
While currently global-requirements restrict usage of psutil to
versions <2.0.0 it can be good to be prepared for upgrade in advance.
This commit makes use of multiprocessing module instead.
Change-Id: I6a4653eb7e5c26 c3068a4d766acb4 bc219920f75
Closes-Bug: #1598208