mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix salt-master for old psutil
This commit is contained in:
parent
fbbf33574e
commit
6970fe8103
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