403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.46
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.6/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/cloudinit/__pycache__/apport.cpython-36.pyc
3

��b��'@s�dZyddlmZmZmZdZWnek
r8dZYnXddddd	d
ddd
ddddddddddddddddddd d!d"d#gZd$Zd%Z	d&Z
d4d(d)�Zd5d*d+�Zd6d,d-�Z
d7d.d/�Zd0d1�Zd2d3�Zd'S)8zCloud-init apport interface�)�attach_file�attach_root_command_outputs�root_command_outputTFZAliYunZAltCloudzAmazon - Ec2ZAzureZBigstepZ	BrightboxZ
CloudSigmaZ
CloudStackZDigitalOceanZE24CloudzGCE - Google Compute EngineZExoscalez
Hetzner Cloudz IBM - (aka SoftLayer or BlueMix)ZLXDZMAASZNoCloudZ
OpenNebulaZ	OpenStackZOracleZOVFz'RbxCloud - (HyperOne, Rootbox, Rubikon)ZOpenTelekomCloudzSAP Converged CloudZScalewayZSmartOSZUpCloudZVMwareZVultrZZStackZOtherz/var/log/cloud-init.logz/var/log/cloud-init-output.logz%/var/lib/cloud/instance/user-data.txtNcCs0t|ddd��tddddg�t|dd�d	S)
zBAttach cloud-init logs and tarfile from 'cloud-init collect-logs'.z-egrep -i "warn|error" /var/log/cloud-init.logz"cat /var/log/cloud-init-output.log)zcloud-init-log-warningszcloud-init-output.log.txtz
cloud-initzcollect-logsz-tz/tmp/cloud-init-logs.tgzzlogs.tgzN)rrr)�report�ui�r�/usr/lib/python3.6/apport.py�attach_cloud_init_logs;s
r	cCs$d}|r |j|�r t|ddi�dS)z*Optionally attach hardware info from lshw.z�Your device details (lshw) may be useful to developers when addressing this bug, but gathering it requires admin privileges. Would you like to include this info?zlshw.txtZlshwN)�yesnor)rr�promptrrr�
attach_hwinfoLsrcCsT|rPd}|j|�}|dkrt�|rPd}|j|t�}|rHt|d|d<nd|d<dS)z&Prompt for cloud details if available.z/Is this machine running in a cloud environment?NzOPlease select the cloud vendor or environment in which this instance is runningrZ	CloudName�None)r
�
StopIterationZchoice�KNOWN_CLOUD_NAMES)rrr�responserrr�attach_cloud_infoWs
rcCs8|r4djt�}|j|�}|dkr$t�|r4t|td�dS)z(Optionally provide user-data if desired.z�Your user-data or cloud-config file can optionally be provided from {0} and could be useful to developers when addressing this bug. Do you wish to attach user-data to this bug?Nz
user_data.txt)�format�USER_DATA_FILEr
rr)rrrrrrr�attach_user_datajs
rcCs(d|j�kr$|d}d|kr$d|d<dS)z$Add any appropriate tags to the bug.Z
JournalErrorszBreaking ordering cyclezsystemd-orderingZTagsN)�keys)r�errorsrrr�add_bug_tags{srcCs@tstd��t||�t||�t||�t||�t|�dS)a-This is an entry point to run cloud-init's apport functionality.

    Distros which want apport support will have a cloud-init package-hook at
    /usr/share/apport/package-hooks/cloud-init.py which defines an add_info
    function and returns the result of cloudinit.apport.add_info(report, ui).
    z;No apport imports discovered. Apport functionality disabledT)�
has_apport�RuntimeErrorr	rrrr)rrrrr�add_info�s



r)N)N)N)N)�__doc__Zapport.hookutilsrrrr�ImportErrorrZ
CLOUDINIT_LOGZCLOUDINIT_OUTPUT_LOGrr	rrrrrrrrr�<module>sZ






Youez - 2016 - github.com/yon3zu
LinuXploit