Stop using deprecated method

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-14 19:19:20 +00:00 committed by Pedro Algarvio
parent 17e9ed2bc5
commit 9054697a5f

View file

@ -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()