cef_troubleshoot.py error
https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/DataConnectors/CEF/cef_troubleshoot.py exiting with errors on Ubuntu 18.04.3 LTS with Russian locale
Traceback (most recent call last):
File "cef_troubleshoot.py", line 632, in
Problem is in 299 line def check_file_in_directory(file_name, path): ''' Check if the given file is found in the current directory. :param path: :param file_name: :return: return True if it is found elsewhere False ''' current_dir = subprocess.Popen(["ls", "-ltrh", path], stdout=subprocess.PIPE) grep = subprocess.Popen(["grep", "-i", file_name], stdin=current_dir.stdout, stdout=subprocess.PIPE) o, e = grep.communicate() output = o.decode('ascii') if e is None and file_name in output: return True return False
if we change output = o.decode('ascii') to output = o.decode(' 'utf8'') - everething is fine
Hi @imelekhin ,
thanks for your input, the issue has been fixed.
thanks,
Ron
@imelekhin - Can you confirm for us the issue has been fixed? If so, I will close this issue. Thanks, Shain