403Webshell
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/errors/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/errors/__pycache__/__init__.cpython-311.pyc
�

���c99��2�ddlmZmZmZeZddlZddlZddlm	Z	ddl
mZmZm
Z
mZmZmZmZmZddlmZmZGd�de��ZGd�d	ee��ZGd
�de��ZGd�d
e��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��Z Gd�de��Z!Gd�de��Z"Gd�de"��Z#Gd�de"��Z$Gd �d!e"��Z%Gd"�d#e��Z&Gd$�d%e��Z'Gd&�d'e'��Z(Gd(�d)e'��Z)Gd*�d+e'��Z*Gd,�d-e��Z+Gd.�d/e+��Z,Gd0�d1e+��Z-Gd2�d3e+��Z.Gd4�d5e"e/��Z0Gd6�d7e+��Z1dS)8�)�absolute_import�division�print_functionN)�Sequence)�YAML_COMMON_DICT_ERROR�YAML_COMMON_LEADING_TAB_ERROR�'YAML_COMMON_PARTIALLY_QUOTED_LINE_ERROR�#YAML_COMMON_UNBALANCED_QUOTES_ERROR� YAML_COMMON_UNQUOTED_COLON_ERROR�#YAML_COMMON_UNQUOTED_VARIABLE_ERROR�YAML_POSITION_DETAILS�YAML_AND_SHORTHAND_ERROR)�	to_native�to_textc�r��eZdZdZd
�fd�	Zed���Zejd���Zd	�Zd
�Z	d�Z
d�Z�xZS)�AnsibleErrora
    This is the base class for all errors raised from Ansible code,
    and can be instantiated with two optional parameters beyond the
    error message to control whether detailed information is displayed
    when the error occurred while parsing a data file of some kind.

    Usage:

        raise AnsibleError('some message here', obj=obj, show_content=True)

    Where "obj" is some subclass of ansible.parsing.yaml.objects.AnsibleBaseYAMLObject,
    which should be returned by the DataLoader() class.
    �NTFc���tt|���|��||_||_t|��|_||_||_dS�N)	�superr�__init__�
_show_content�_suppress_extended_errorr�_message�obj�orig_exc)�self�messager�show_content�suppress_extended_errorr�	__class__s      ��</usr/lib/python3.11/site-packages/ansible/errors/__init__.pyrzAnsibleError.__init__7sR���
�l�D�!�!�*�*�7�3�3�3�)���(?��%�!�'�*�*��
���� ��
�
�
�c�Z�ddlm}|jg}t|j|��rC|���}|r,|js%|�dt|��z��n1|j	r*|�dt|j	��z��d�
|��S)Nr)�AnsibleBaseYAMLObjectz

%sz. %sr)�ansible.parsing.yaml.objectsr%r�
isinstancer�_get_extended_errorr�appendrr�join)rr%r�extended_errors    r"rzAnsibleError.message@s���	G�F�F�F�F�F��=�/���d�h� 5�6�6�	>�!�5�5�7�7�N��
�d�&C�
�����y��8�8�8������]�	>��N�N�6�I�d�m�$<�$<�<�=�=�=��w�w�w���r#c��||_dSr)r)r�vals  r"rzAnsibleError.messageRs
����
�
�
r#c��|jSr�r�rs r"�__str__zAnsibleError.__str__V�
���|�r#c��|jSrr/r0s r"�__repr__zAnsibleError.__repr__Yr2r#c�Z�d}d}t|d��5}|���}t|��}||kr|dz
}||}|���s!|dz}||}|����!|dkr||dz
}ddd��n#1swxYwY||fS)z�
        Returns the line in the file which corresponds to the reported error
        location, as well as the line preceding it (if the error did not
        occur on the first line), to provide context to the error.
        r�r�rN)�open�	readlines�len�strip)r�	file_name�line_number�target_line�	prev_line�f�lines�file_lengths        r"�_get_error_lines_from_filez'AnsibleError._get_error_lines_from_file\s�����	�
�)�S�
!�
!�	3�Q��K�K�M�M�E�
�e�*�*�K��k�)�)�)�A�o��
 ��,�K�!�'�'�)�)�
1��q� ��#�K�0��"�'�'�)�)�
1��Q���!�+��/�2�	�'	3�	3�	3�	3�	3�	3�	3�	3�	3�	3�	3����	3�	3�	3�	3�*�Y�'�'s�A=B�B"�%B"c�N�d}	|jj\}}}|t|||fzz
}|dv�r�|j�r�|�||dz
��\}}t|��}t|��}|�r�|�dd��}tjd|��rk|�	���
d��}d|zdz}	t||dz
|dzfz}|d|�	���d	|	�d
�z
}|tz
}n>d|dz
zdz}	|d|�	���d	|�	���d	|	�d	�z
}d|vr
|tz
}d|vrd
|vrd|vsd|vr|tz
}�n�d|vrd
|vr|tz
}�nxt|��rWt|��dkrDt|��|kr1||dkr%|�d��dkr|t"z
}�n|�d��}
t|
��dkr�|
d���}d}d}
|�d��r|�d��sd}n,|�d��r|�d��sd}t|��dkr-|ddvr#|ddvr|�d��dks|�d��dkrd}
|r
|t,z
}|
r
|t.z
}n,#t0t2f$r|dz
}Ynt4$r|dz
}YnwxYw|S)a�
        Given an object reporting the location of the exception in a file, return
        detailed information regarding it including:

          * the line which caused the error as well as the one preceding it
          * causes and suggested remedies for common syntax errors

        If this error was created with show_content=False, the reporting of content
        is suppressed, as the file contents may be sensitive (ie. vault data).
        r)z<string>z	<unicode>r7� z\w+(\s+)?=(\s+)?[\w/-]+�=z^ herez$
The offending line appears to be:

�
z

�	z{{z}}z"{{z'{{z:{{�:F�'T�"r)rKrJ����z&
(could not open file to display line)z6
(specified line no longer in file, maybe it changed?))r�ansible_posr
rrCr�replace�re�search�rstrip�findrrrrr:�countr�splitr;�
startswith�endswithr	r
�IOError�	TypeError�
IndexError)r�
error_message�src_filer=�
col_numberr>r?�
stripped_line�error_position�
arrow_line�parts�middle�match�
unbalanceds              r"r(z AnsibleError._get_extended_error}s/���
�F	W�26�(�2F�/�X�{�J��2�h��Z�5X�X�X�M��8�8�8�T�=O�8�+/�+J�+J�8�U`�cd�Ud�+e�+e�(��i�%�k�2�2��#�I�.�.�	��:U�$/�$7�$7��R�$@�$@�M��y�!;�Y�G�G�X�)2�)9�)9�);�);�)@�)@��)E�)E��&)�N�&:�h�%F�
�(=��;�YZ�?�\j�mn�\n�@o�(o�
�%�
�`i�`p�`p�`r�`r�`r�`r�t~�t~�t~�)��
�%�)A�A�
�
�&)�Z�!�^�&<��%H�
�%�
�bk�br�br�bt�bt�bt�bt�wB�wI�wI�wK�wK�wK�wK�MW�MW�MW�*X�X�
��{�*�*�%�)F�F�
���+�+���0C�0C�%�Wb�Jb�Jb�fk�s~�f~�f~�%�)L�L�
�
��-�/�/�D�M�4I�4I�%�)?�?�
�
��k�*�*� U���,�,�q�0�0���,�,�z�9�9�'�
�3�s�:�:�'�-�-�c�2�2�Q�6�6�%�)I�I�
�
�!,� 1� 1�#� 6� 6���u�:�:��>�>�%*�1�X�^�^�%5�%5�F�$)�E�).�J�%�0�0��5�5�-�f�o�o�c�>R�>R�-�(,���!'�!2�!2�3�!7�!7�-����PS�@T�@T�-�(,�� #�F���a���$*�1�I��$;�$;�$*�2�J�*�$<�$<�$/�$5�$5�c�$:�$:�Q�$>�$>�$/�$5�$5�c�$:�$:�Q�$>�$>�-1�
�$�Y� -�1X� X�
�)�U� -�1T� T�
�����#�	G�	G�	G��F�F�M�M�M��	W�	W�	W��V�V�M�M�M�	W�����s�K4K9�9L"�L"�!L")rNTFN)
�__name__�
__module__�__qualname__�__doc__r�propertyr�setterr1r4rCr(�
__classcell__�r!s@r"rr(s����������!�!�!�!�!�!�� � ��X� �"
�^����^��������(�(�(�BV�V�V�V�V�V�Vr#rc��eZdZdZdS)�AnsibleAssertionErrorzInvalid assertionN�rerfrgrh�r#r"rnrn�s���������Dr#rnc��eZdZdZdS)�AnsibleOptionsErrorz" bad or incomplete options passed Nrorpr#r"rrrr�s������,�,��Dr#rrc��eZdZdZdS)�AnsibleParserErrorzJ something was detected early that is wrong about a playbook or data file Nrorpr#r"rtrt�s������T�T��Dr#rtc��eZdZdZdS)�AnsibleInternalErrorzV internal safeguards tripped, something happened in the code that should never happen Nrorpr#r"rvrv�s������`�`��Dr#rvc��eZdZdZdS)�AnsibleRuntimeErrorz0 ansible had a problem while running a playbook Nrorpr#r"rxrx�s������:�:��Dr#rxc��eZdZdZdS)�AnsibleModuleErrorz a module failed somehow Nrorpr#r"rzrz�s������#�#��Dr#rzc��eZdZdZdS)�AnsibleConnectionFailurez5 the transport / connection_plugin had a fatal error Nrorpr#r"r|r|�s������?�?��Dr#r|c��eZdZdZdS)�AnsibleAuthenticationFailurezinvalid username/password/keyNrorpr#r"r~r~��������'�'��Dr#r~c��eZdZdZdS)�AnsibleCallbackErrorz a callback failure Nrorpr#r"r�r��s���������Dr#r�c��eZdZdZdS)�AnsibleTemplateErrorzA template related errorNrorpr#r"r�r�s������"�"��Dr#r�c��eZdZdZdS)�AnsibleFilterError� a templating failure Nrorpr#r"r�r�������� � ��Dr#r�c��eZdZdZdS)�AnsibleLookupErrorz a lookup failure Nrorpr#r"r�r�
s���������Dr#r�c��eZdZdZdS)�AnsibleUndefinedVariabler�Nrorpr#r"r�r�r�r#r�c�$��eZdZdZd�fd�	Z�xZS)�AnsibleFileNotFoundz a file missing failure rNTFc���||_||_|r|dz
}|jr|dt|j��zz
}n|dz
}|jrPt|jt��r6td�|j����}|r|dz
}|d|zz
}|dz
}t
t|���|||||���dS)NrGzCould not find or access '%s'zCould not find filez
	zSearched in:
	%sz{ on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option�rrrr r)	r<�pathsrr'rr*rr�r)
rrrrr rr�r<�searchedr!s
         �r"rzAnsibleFileNotFound.__init__s���"�����
��	��t�O�G��>�	-��6����9P�9P�P�P�G�G��,�,�G��:�	7�*�T�Z��:�:�	7��v�{�{�4�:�6�6�7�7�H��
 ��4����+�h�6�6�G��R�	R��
�!�4�(�(�1�1�'�s�Ye�Ja�lt�	2�	v�	v�	v�	v�	vr#)rNTFNNN�rerfrgrhrrkrls@r"r�r�sM�������"�"�v�v�v�v�v�v�v�v�v�vr#r�c�$��eZdZdZd�fd�	Z�xZS)�
AnsibleActionz/ Base Exception for Action plugin flow control rNTFc���tt|���|||||���|�	i|_dS||_dS)Nr�)rr�r�result�rrrrr rr�r!s       �r"rzAnsibleAction.__init__8sU���
�m�T�"�"�+�+�G��S_�D[�fn�	,�	p�	p�	p��>��D�K�K�K� �D�K�K�Kr#�rNTFNNr�rls@r"r�r�5sC�������9�9�!�!�!�!�!�!�!�!�!�!r#r�c�$��eZdZdZd�fd�	Z�xZS)�AnsibleActionSkipz an action runtime skiprNTFc���tt|���||||||���|j�d|d���dS)N�rrrr rr�T)�skipped�msg)rr�rr��updater�s       �r"rzAnsibleActionSkip.__init__Esf���
���&�&�/�/��S�Wc�H_�jr�|B�	0�	C�	C�	C�����t�G�<�<�=�=�=�=�=r#r�r�rls@r"r�r�BsC�������!�!�>�>�>�>�>�>�>�>�>�>r#r�c�$��eZdZdZd�fd�	Z�xZS)�AnsibleActionFailz an action runtime failurerNTFc����tt|���||||||���|j�d|tj��d���dS)Nr�T)�failedr��	exception)rr�rr�r��	traceback�
format_excr�s       �r"rzAnsibleActionFail.__init__Msq���
���&�&�/�/��S�Wc�H_�jr�|B�	0�	C�	C�	C�����d�7��I]�I_�I_�`�`�a�a�a�a�ar#r�r�rls@r"r�r�KsM�������$�$�b�b�b�b�b�b�b�b�b�br#r�c��eZdZdZdS)�_AnsibleActionDonez an action runtime early exitNrorpr#r"r�r�Srr#r�c�$��eZdZdZd�fd�	Z�xZS)�AnsiblePluginErrorz\ base class for Ansible plugin-related errors that do not need AnsibleError contextual data Nc�f��tt|���|��||_dSr)rr�r�plugin_load_context)rrr�r!s   �r"rzAnsiblePluginError.__init__Zs0���
� �$�'�'�0�0��9�9�9�#6�� � � r#)NNr�rls@r"r�r�XsC�������f�f�7�7�7�7�7�7�7�7�7�7r#r�c��eZdZdZdS)�AnsiblePluginRemovedErrorz% a requested plugin has been removed Nrorpr#r"r�r�_s������/�/��Dr#r�c��eZdZdZdS)�AnsiblePluginCircularRedirectz*a cycle was detected in plugin redirectionNrorpr#r"r�r�ds������4�4��Dr#r�c��eZdZdZdS)�(AnsibleCollectionUnsupportedVersionErrorz8a collection is not supported by this version of AnsibleNrorpr#r"r�r�is������B�B��Dr#r�c��eZdZdZdS)�AnsibleFilterTypeErrorz2 a Jinja filter templating failure due to bad typeNrorpr#r"r�r�ns������<�<��Dr#r�c��eZdZdZdS)�AnsiblePluginNotFoundz- Indicates we did not find an Ansible plugin Nrorpr#r"r�r�ss������7�7��Dr#r�)2�
__future__rrr�type�
__metaclass__rPr��collections.abcr�ansible.errors.yaml_stringsrrr	r
rrr
r�ansible.module_utils._textrr�	Exceptionr�AssertionErrorrnrrrtrvrxrzr|r~r�r�r�r�r�r�r�r�r�r�r�r�r�r�rYr�r�rpr#r"�<module>r�s ��&C�B�B�B�B�B�B�B�B�B��
�	�	�	�	�����$�$�$�$�$�$�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�:�9�9�9�9�9�9�9�k�k�k�k�k�9�k�k�k�\	�	�	�	�	�L�.�	�	�	�
	�	�	�	�	�,�	�	�	�
	�	�	�	�	��	�	�	�
	�	�	�	�	�<�	�	�	�
	�	�	�	�	�,�	�	�	�
	�	�	�	�	�,�	�	�	�
	�	�	�	�	�2�	�	�	�
	�	�	�	�	�#;�	�	�	�
	�	�	�	�	�.�	�	�	�
	�	�	�	�	�.�	�	�	�
	�	�	�	�	�-�	�	�	�
	�	�	�	�	�-�	�	�	�
	�	�	�	�	�3�	�	�	�
v�v�v�v�v�-�v�v�v�<
!�
!�
!�
!�
!�'�
!�
!�
!�>�>�>�>�>�
�>�>�>�b�b�b�b�b�
�b�b�b�	�	�	�	�	��	�	�	�
7�7�7�7�7��7�7�7�	�	�	�	�	� 2�	�	�	�
	�	�	�	�	�$6�	�	�	�
	�	�	�	�	�/A�	�	�	�
	�	�	�	�	�1�9�	�	�	�
	�	�	�	�	�.�	�	�	�	�	r#

Youez - 2016 - github.com/yon3zu
LinuXploit