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: I6a4653eb7e5c26c3068a4d766acb4bc219920f75
Closes-Bug: #1598208
(cherry picked from commit 8fb54da2f91a88286fcc1b444d26b387cd04d174)
Reviewed: https:/ /review. openstack. org/360727 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=521f031490f 07f109c33f9409f 8370db96555873
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 521f031490f07f1 09c33f9409f8370 db96555873
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 86fcc1b444d26b3 87cd04d174)
Closes-Bug: #1598208
(cherry picked from commit 8fb54da2f91a882