mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45186 from rallytime/bp-44922
Back-port #44922 to 2017.7
This commit is contained in:
commit
67d97303b5
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ else:
|
|||
# Psuedo "from psutil import *"
|
||||
_globals = globals()
|
||||
for attr in psutil.__all__:
|
||||
_temp = __import__('psutil', globals(), locals(), [attr], -1)
|
||||
_temp = __import__('psutil', globals(), locals(), [attr], -1 if six.PY2 else 0)
|
||||
try:
|
||||
_globals[attr] = getattr(_temp, attr)
|
||||
except AttributeError:
|
||||
|
|
Loading…
Add table
Reference in a new issue