mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38584 from rallytime/fix-38462
Allow memusage beacon to load on Windows
This commit is contained in:
commit
be69bafe6e
1 changed files with 1 additions and 6 deletions
|
@ -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__
|
||||
|
|
Loading…
Add table
Reference in a new issue