Merge pull request #38584 from rallytime/fix-38462

Allow memusage beacon to load on Windows
This commit is contained in:
Mike Place 2017-01-05 11:08:30 -07:00 committed by GitHub
commit be69bafe6e

View file

@ -12,9 +12,6 @@ from __future__ import absolute_import
import logging
import re
# Import Salt libs
import salt.utils
# Import Third Party Libs
try:
import psutil
@ -28,9 +25,7 @@ __virtualname__ = 'memusage'
def __virtual__():
if salt.utils.is_windows():
return False
elif HAS_PSUTIL is False:
if HAS_PSUTIL is False:
return False
else:
return __virtualname__