One Hat Cyber Team
Your IP :
3.135.223.70
Server IP :
104.21.112.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
apport
/
package-hooks
/
View File Name :
source_ubuntu-advantage-tools.py
import os import tempfile from apport.hookutils import attach_file_if_exists from uaclient.actions import collect_logs from uaclient.config import UAConfig def add_info(report, ui=None): report["LaunchpadPrivate"] = "1" report["LaunchpadSubscribe"] = "ua-client" cfg = UAConfig() with tempfile.TemporaryDirectory() as output_dir: collect_logs(cfg, output_dir) auto_include_log_files = [ "cloud-id.txt", "cloud-id.txt-error", "ua-status.json", "ua-status.json-error", "livepatch-status.txt", "livepatch-status.txt-error", os.path.basename(cfg.cfg_path), os.path.basename(cfg.log_file), os.path.basename(cfg.timer_log_file), os.path.basename(cfg.daemon_log_file), os.path.basename(cfg.data_path("jobs-status")), ] for f in auto_include_log_files: attach_file_if_exists(report, os.path.join(output_dir, f), key=f)