| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3.9/site-packages/cloudinit/__pycache__/ |
Upload File : |
a
�½b� � @ s� d Z zddlmZmZmZ dZW n ey6 dZY n0 g d�ZdZdZ dZ
dd
d�Zddd
�Zddd�Z
ddd�Zdd� Zdd� Zd S )zCloud-init apport interface� )�attach_file�attach_root_command_outputs�root_command_outputTF)ZAliYunZAltCloudzAmazon - Ec2ZAzureZBigstepZ BrightboxZ
CloudSigmaZ
CloudStackZDigitalOceanZE24CloudzGCE - 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.txtNc C s, t | ddd�� tg d�� t| dd� dS )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.txt)z
cloud-initzcollect-logsz-t�/tmp/cloud-init-logs.tgzr zlogs.tgzN)r r r ��report�ui� r �4/usr/lib/python3.9/site-packages/cloudinit/apport.py�attach_cloud_init_logs; s �� �r c C s$ d}|r |� |�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 )r r �promptr r r
�
attach_hwinfoL s �r c C sT |rPd}|� |�}|du rt�|rPd}|�|t�}|rHt|d | d<