⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
cloudinit
/
__pycache__
/
View File Name :
apport.cpython-312.pyc
f! d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m Z ddlmZm Z mZmZ dZg d Zdd ZddZddZdd ZddefdZd Zd Zdeeef fdZdeeef fdZeedZdeddfdZddZ y# e$ r dZY Rw xY w)zCloud-init apport interface N)Dict)INSTALLER_APPORT_FILES INSTALLER_APPORT_SENSITIVE_FILES)is_cloud_init_enabled)attach_fileattach_file_if_existsattach_root_command_outputsroot_command_outputTF)$AliYunAltCloudAkamaizAmazon - Ec2AzureBigstep Brightbox CloudSigma CloudStackDigitalOceanE24CloudzGCE - Google Compute EnginezHuawei CloudExoscalez Hetzner CloudNWCSz IBM - (aka SoftLayer or BlueMix)LXDMAASNoCloud OpenNebula OpenStackOracleOVFz'RbxCloud - (HyperOne, Rootbox, Rubikon)OpenTelekomCloudzSAP Converged CloudScalewaySmartOSUpCloudVMwareVultrZStackOutscaleWSLOtherc ~ t | ddi g d}|s|j d t | t | dd y)zBAttach cloud-init logs and tarfile from 'cloud-init collect-logs'.zcloud-init-log-warningsz-egrep -i "warn|error" /var/log/cloud-init.log)z cloud-initzcollect-logsz-t/tmp/cloud-init-logs.tgzz--redactr) zlogs.tgzN)r appendr r )reportuiinclude_sensitivecommands 2/usr/lib/python3/dist-packages/cloudinit/apport.pyattach_cloud_init_logsr0 G sE %? G z" 2J? c N d}|r!|j | rt | ddi yyy)z*Optionally attach hardware info from lshw.zYour 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.txtlshwN)yesnor )r+ r, prompts r/ attach_hwinfor6 ] s2 0 bhhv#FZ,@A rr1 c 6 t D ]B }t j j |j }t | ||j D |rLt D ]B }t j j |j }t | ||j D yy)a Attach any subiquity installer logs config. To support decoupling apport integration from installer config/logs, we eventually want to either source this function or APPORT_FILES attribute from subiquity and/or ubuntu-desktop-installer package-hooks python modules. N)r ospathrealpathr labelr )r+ r, r- apport_filer: s r/ attach_installer_filesr= h sz .77##K$4$45fh0A0AB . ;Kww''(8(89H!&(K4E4EF < r1 c t j j d }t | | t j j | r2| j dd | d r | dxx dz cc<