Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.11/site-packages/ansible/utils/__pycache__/ |
Upload File : |
� ���cX � � � d dl mZmZmZ eZd dlZd dlmZ d dlm Z n # e$ r dZ Y nw xY wd dlm Z d dlmZ efd�Zefd�ZeZeZd � Zd � Z dS )� )�absolute_import�division�print_functionN)�sha1)�md5)�AnsibleError)�to_bytesc � � |� � }t | d�� � } |� | � � |� � � S )z* Return a secure hash hex digest of data. �surrogate_or_strict��errors)r �update� hexdigest)�data� hash_func�digests �:/usr/lib/python3.11/site-packages/ansible/utils/hashing.py� secure_hash_sr $ sF � � �Y�[�[�F��D�!6�7�7�7�D� �M�M�$���������� c �< � t j � t | d�� � � � r.t j � t | d�� � � � rdS |� � }d} t t | d�� � d� � }|� |� � }|r,|� |� � |� |� � }|�,|� � � n'# t $ r}t d| �d|��� � �d}~ww xY w|� � � S ) z\ Return a secure hash hex digest of local file, None if file is not present or a directory. r r �strictNi �rbzerror while accessing the file z , error was: )�os�path�existsr �isdir�open�readr �close�IOErrorr r )�filenamer r � blocksize�infile�block�es r �secure_hashr&