mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix imports that aren't in __all__
This commit is contained in:
parent
8a1da33ada
commit
5dd6d69192
1 changed files with 5 additions and 1 deletions
|
@ -28,6 +28,10 @@ else:
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
# Import functions not in __all__
|
||||
from psutil import disk_partitions
|
||||
from psutil import disk_usage
|
||||
|
||||
# Alias new module functions
|
||||
def boot_time():
|
||||
return psutil.BOOT_TIME
|
||||
|
@ -39,7 +43,7 @@ else:
|
|||
pids = psutil.get_pid_list
|
||||
users = psutil.get_users
|
||||
|
||||
#Deprecated in 1.0.1, but not mentioned in blog post
|
||||
# Deprecated in 1.0.1, but not mentioned in blog post
|
||||
if psutil.version_info < (1, 0, 1):
|
||||
net_io_counters = psutil.network_io_counters()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue