mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Stop using deprecated method
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
17e9ed2bc5
commit
9054697a5f
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def _read_proc_file(path, opts):
|
|||
"""
|
||||
Return a dict of JID metadata, or None
|
||||
"""
|
||||
current_thread = threading.currentThread().name
|
||||
current_thread = threading.current_thread().name
|
||||
pid = os.getpid()
|
||||
with salt.utils.files.fopen(path, "rb") as fp_:
|
||||
buf = fp_.read()
|
||||
|
|
Loading…
Add table
Reference in a new issue