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/module_utils/common/__pycache__/ |
Upload File : |
� ���c � �2 � d dl mZmZmZ eZd dlmZ dd�ZdS )� )�absolute_import�division�print_function)� to_nativeNFc �R � d} | � d� � }|st d� � �g }|�g d�}| � |dg� � \ }}}|dk rK|r'|� � � � � � }nDt d|�d t |� � ��� � �t d |�d t |� � ��� � �|r |D ] } | |v r| } n�n?# t $ r2} |r� | � dt | � � z � � Y d} ~ nd} ~ ww xY w| � d|z � � |S ) aR Attempts to return the best possible locale for parsing output in English useful for scraping output with i18n tools. When this raises an exception and the caller wants to continue, it should use the 'C' locale. :param module: an AnsibleModule instance :param preferences: A list of preferred locales, in order of preference :param raise_on_locale: boolean that determines if we raise exception or not due to locale CLI issues :returns: The first matched preferred locale or 'C' which is the default �C�localezCould not find 'locale' toolN)zC.utf8zC.UTF-8z en_US.utf8zen_US.UTF-8r �POSIXz-ar zNo output from locale, rc=z: z%Unable to get locale information, rc=z$Failed to get locale information: %szMatched preferred locale to: %s)�get_bin_path�RuntimeWarning�run_command�strip� splitlinesr �debug)�module�preferences�raise_on_locale�foundr � available�rc�out�err�pref�es �G/usr/lib/python3.11/site-packages/ansible/module_utils/common/locale.py�get_best_parsable_localer s� � � �E�!P��$�$�X�.�.��� A� �!?�@�@�@�� ��� [�Z�Z�K��)�)�6�4�.�9�9���C�� ��7�7�� `��I�I�K�K�2�2�4�4� � �$�n�2�2�2�y�Y\�~�~�~�%^�_�_�_� �.�RT�RT�RT�V_�`c�Vd�Vd�Vd�!e�f�f�f�� �#� � ���9�$�$� �E��E� %��� � P� P� P�� P���L�L�?�)�A�,�,�N�O�O�O�O�O�O�O�O����� P���� �L�L�2�U�:�;�;�;��Ls �CC � D�(D�D)NF) � __future__r r r �type� __metaclass__�ansible.module_utils._textr r � � r �<module>r# s[ �� A� @� @� @� @� @� @� @� @� @�� � 0� 0� 0� 0� 0� 0�3� 3� 3� 3� 3� 3r"