HEX
Server: LiteSpeed
System: Linux oxygen.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: rasapedi (1695)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python2.7/site-packages/leapp/utils/report.pyo
�
�S4bc@s�ddlZddlZddlZddlmZmZmZmZddlm	Z	m
Z
d�Zd�Zidej
6dej6dej6d	ej6Zd
�Zdd�ZdS(
i����N(tRemediationtSeveritytcreate_report_from_errortcreate_report_from_deprecation(tget_messagestget_audit_entryc
Cs1g}t�}xtddd|�D]}tj|d�}tj|dt�jd�}tj|�j	�}||kr�q%n|j
|�t|�}tj�}|j|jd��|j|djd��i|dd6t
jd	d
6|dd6|j	�d6}	|j|	�|j|�q%W|S(
Nteventtdeprecationtcontexttdatat	sort_keyssutf-8tstampt	timeStamptLEAPP_HOSTNAMEthostnametactortid(tsetRtjsontloadstdumpstTruetencodethashlibtsha256t	hexdigesttaddRtupdatetostenvirontappend(
t
context_idtreportstcachetentryR	t
_data_dumpt	data_hashtreportRtenvelope((s6/usr/lib/python2.7/site-packages/leapp/utils/report.pyt!_create_reports_from_deprecations	s*	

c	CsNtdddgd|�pg}g}x
|D]}|dd}tj�}|j|ddjd��|j|djd��|jt|d	�jd��i|d
d6|dd6|d
d
6|j�d	6}tj|�}tj|j	dd��}|st
|�}n|j|�|j|�q.W|jt
|��|S(s�
    :param context_id: ID to identify the needed messages
    :type context_id: str
    :return: All upgrade messages of type "Report" withing the given context
    tnamestReportt
ErrorModelRtmessageR	thashsutf-8RRRRRR%s{}(RRRRRtstrRRRtgetRRtextendR'(	Rtreport_msgstmessagesR+R	RR&t	data_jsonR%((s6/usr/lib/python2.7/site-packages/leapp/utils/report.pytfetch_upgrade_report_messages(s*!
 
iiiicCs0d|jdg�krdStj|dd�S(Nt	inhibitortflagsitseverityic(R.tSEVERITY_LEVELS(R+((s6/usr/lib/python2.7/site-packages/leapp/utils/report.pyt
importanceVss1.1.0c	Cs�tg|jd�D]}t|�^q�}|jd�rbt|d��}xt|dt�D]�}d|jdg�k}|jdj	|d|r�d	nd
��|jdj	|d��|jd
j	|d��t
j|jdi��}	|	r|jdj	|	��n|dkr@|jdj	|d��n|jddd�qbWWdQXn�|jd�r�t|d��d}|dkr�t|�}x|D]}
|
j
d�q�Wntji|d6|d6|dd�WdQXndS(Nt.s.txttwtkeyR4R5sRisk Factor: {}{}
R6s (inhibitor)ts
Title: {}
ttitlesSummary: {}
tsummarytdetailsRemediation: {}
iisKey: {}
t-i(s
s.jsontentriestleapp_run_idtindenti(iii(iii(ttupletsplittinttendswithtopentsortedR8R.twritetformatRt	from_dicttlisttpopRtdump(tmessages_to_reportRtpatht
report_schematxtreport_schema_tupletfR+tis_inhibitortremediationtm((s6/usr/lib/python2.7/site-packages/leapp/utils/report.pytgenerate_report_file\s*.)"
(RRRtleapp.reportingRRRRtleapp.utils.auditRRR'R3tHIGHtMEDIUMtLOWtINFOR7R8RY(((s6/usr/lib/python2.7/site-packages/leapp/utils/report.pyt<module>s"		&