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 : |
� ���c3 � �@ � d dl mZmZmZ eZd dlmZ dd�Zd d�Z d� Z dS ) � )�absolute_import�division�print_function)�string_types� c �� � t | t � � rO| � d� � r:t | � dd� � � � }t |dz |z � � p|S t | � � S )z| Converts a given value to a percentage if specified as "x%", otherwise converts the given value to an integer. �%� g Y@)� isinstancer �endswith�int�replace)�value� num_items� min_value� value_pcts �:/usr/lib/python3.11/site-packages/ansible/utils/helpers.py� pct_to_intr sm � � �%��&�&� �5�>�>�#�+>�+>� ��� � �c�2�.�.�/�/� ��I��%��2�3�3�@�y�@��5�z�z�� Nc � � �� ��t �t � � sg �t �� fd�t � � � D � � � � S )zg Converts an object into a dict making the properties into keys, allows excluding certain keys Nc 3 �n �K � | ]/}|� d � � �|�v �|t �|� � fV � �0dS )�_N)� startswith�getattr)�.0�key�exclude�objs ��r � <genexpr>z!object_to_dict.<locals>.<genexpr>+ sP �� � � �l�l�S�S�^�^�TW�EX�EX�l�\_�cj�\j�\j��g�c�3�'�'�(�\j�\j�\j�\j�l�lr )r �list�dict�dir)r r s ``r �object_to_dictr# % sJ ��� � ��j��$�7�7�����l�l�l�l�l�C��H�H�l�l�l�l�l�lr c �<